RE: [PHP-WIN] Slight problem with PHP_SELF
| From: | Matt Williams | Date: | Thu, 14 Dec 2000 14:45:38 +0000 |
| Subject: | RE: [PHP-WIN] Slight problem with PHP_SELF | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-4464@lists.php.net to get a copy of this message | ||
> > When I uses $PHP_SELF as part of a URL on my Windows 98 / PHP 4 / Apache
> > 1.3.x setup the variable returns the following (example):
> >
> > http://localhost/php4/php.exe/tfc/news.php?newsid=776
> >
> > Where I was expecting it to return:
> >
> > http://localhost/tfc/news.php?newsid=776
> >
You can use basename($PHP_SELF) to cure this problem
M@