Re: PHP Upgrade Problem
| From: | Tassos T | Date: | Fri, 25 Jul 2003 07:12:41 +0000 |
| Subject: | Re: PHP Upgrade Problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-156801@lists.php.net to get a copy of this message | ||
I thing, you must use
$s = getenv('SCRIPT_URL'); and not $s = getenv('SCRIPT_NAME'); in php ver 4.3.2
Shaun wrote:
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? Thanks