* Thus wrote Ashley M. Kirchner:
>
> Anyone have an article written, or can point me to one that talks
> about converting URLS from:
>
> http://www.domain.com/script.php?var=1&var=2
>
> ...to:
>
> http://www.domain.com/script/var1/var2
I'm not aware of any articles but the trick basically goes like
this:
- set up the webserver to parse a file name 'script' as php
aka with apache:
<Files script>
SetHandler application/x-httpd-php
</Files>
- script uses $_SERVER['PATH_INFO'] to know what was passed:
echo $_SERVER['PATH_INFO'];
results with: /var1/var2
The rest is up to your discretion.
Curt
--
First, let me assure you that this is not one of those shady pyramid schemes
you've been hearing about. No, sir. Our model is the trapezoid!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php