Forum Moderators: coopster

Message Too Old, No Replies

make "blabla" into keywords as in "php.net/blabla"

url keyword transform directory

         

Snurk

9:43 pm on Oct 13, 2005 (gmt 0)

10+ Year Member



Hi,

I know this must be documented, but I cant seem to find it.

How would you transform the URL into values? Like how php.net does;

www.php.net/date
does a search for "date" in their database...

I have built a simple search function on my site, and I would like to do the same.. anyone who knows how? Or who has seen an article in the subject? Or has any other tips?

Thanks for your time!

///SNURK

coopster

2:55 pm on Oct 14, 2005 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



I would imagine it would be a regular expression [php.net] that does a search/replace.

killroy

5:26 pm on Oct 14, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I usually use mod_rewrite in Apache to rewrite all example.com/someword to example.com/script.php?someword

then simply use the $_SERVER['QUERY_STRING'] to read the value.

SN