Re: PHP Upgrade Problem
| From: | Curt Zirzow | Date: | Fri, 25 Jul 2003 04:29:09 +0000 |
| Subject: | Re: PHP Upgrade Problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-156783@lists.php.net to get a copy of this message | ||
* Thus wrote Shaun (shaun@mania.plus.com):
> Hi,
>
> The following code snippet is supposed to return the current page i am on
> and append some variables.
>
> $s = getenv('SCRIPT_NAME');
> $link = "$s?month=$month&year=$year&goto_date=yes";
>
> However, since upgrading to PHP version 4.3.2 it returns the following URL:
>
> execscriptdir/php.cgi?day=19&month=07&year=2003&goto_date=yes
>
> when it should be
>
> bookings.php?day=19&month=07&year=2003&goto_date=yes
>
> can anyone help please?
Hm..
so what kind of environment are you in CGI?
Is that the exact text that it is returning?
ie execscriptdir/php.cgi
Oh and one last quetion, have you tried using getenv('PHP_SELF')?
I'm not sure if PHP_SELF will make a difference, but i would try it
anyway.
Curt
--
"I used to think I was indecisive, but now I'm not so sure."