Jay Blanchard wrote:
[snip]
I think I may be headed down the wring direction.
I'm using Apache.
What I'd like to be able to do is to
pass arguments to a script as though it were a directory.
Something like so
http://server.com/script.php/some-virtual/dirs/
[/snip]
http://us2.php.net/dir
http://httpd.apache.org/docs/1.3/mod/mod_rewrite.html
Ah, both those links are useless for what he wants to do.
Brad, Make a script called script.php containing the following line:
<pre><?php print_r( $_SERVER['PATH_INFO'] ); ?></pre>
And then access http://yourserver.com/script.php/some/path/info and
you'll see how you can use that string (hint: explode on '/').
Jasper
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php