RE: [PHP] php invocation
| From: | Emil Stenqvist | Date: | Thu, 17 Apr 2003 13:01:42 +0000 |
| Subject: | RE: [PHP] php invocation | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-144277@lists.php.net to get a copy of this message | ||
Instead of using mod_rewrite, you could make a VirtualHost in Apache,
with the script you want as the document root, an example follows:
<VirtualHost test.com>
ServerAdmin foo@bar.com
DocumentRoot /www/yourscript.php
ServerName test.com
</VirtualHost>
Now, if you access test.com/foobar/, you can get "/foobar/" in the
$_SERVER["REQUEST_URI"] variable within the script /www/yourscript.php.
-------------------------------
Emil Stenqvist <emil@evolve.se>
http://dignitas.net/
+46 073 763 67 91
> -----Original Message-----
> From: Alexei Matveev [mailto:gunzip@germany.ru]
> Sent: den 16 april 2003 18:10
> To: php-general@lists.php.net
> Subject: [PHP] php invocation
>
>
> Hello, Collegues,
>
> Could somebody with a broader view of the subject
> than mine advise me:
>
> Is it possible to translate
> urlpath/page1.html
> into a call to php script with page1.html as
> an argument? If yes, how?
>
> Alexei
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php