* Thus wrote Shaun ([EMAIL PROTECTED]):
> 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."
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php