Re: Virtual Directory Support

From: Date: Tue, 15 Nov 2005 20:41:57 +0000
Subject: Re: Virtual Directory Support
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-225874@lists.php.net to get a copy of this message
The script does not give me any output. I think this is what I need to enable. On 11/15/05, Jasper Bryant-Greene <jasper@album.co.nz> wrote: > 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 (#225874) next »