Re: Alternate way of calling php scripts

From: Date: Wed, 08 Aug 2001 15:26:49 +0000
Subject: Re: Alternate way of calling php scripts
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-61844@lists.php.net to get a copy of this message
It works pretty much as you described. :) Make a script like that and run phpinfo() from it and you'll see all the variations on $PHP_SELF and $HTTP_SERVER_VARS[] that allow you to retrieve the extra parameters from the URL. Note that if your page displays images, you'll need to include a <base href="..."> tag to stop the browser from getting confused. I use this all over the place and it works great. There's also a variant with the Apache ForceType directive that allows you to just do stuff like www.mysite.com/myscript/foo/bar/123 where 'myscript' is really a php file. It's well-discussed in the archives and at phpbuilder. - Tim http://www.phptemplates.org On 08 Aug 2001 06:13:14 -0700, Evan Nemerson wrote: > I seem to recall that you can call a PHP script with a slash after it then > variables. For instance http://localhost/script.php/your=mom. I > can't find it > in the manual, and was wondering if anyone knows how it works. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#61844) next »