Re: Virtual Directory Support

From: Date: Tue, 15 Nov 2005 20:01:35 +0000
Subject: Re: Virtual Directory Support
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-225869@lists.php.net to get a copy of this message
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

« previous php.general (#225869) next »