Author |
Message |
01/09/2004 17:05:50
|
Anonymous
|
Hi do you have any experience using setting up advanced poll on IIS using PHP version 5. I'm using MySQL as the database. I've just recently installed the latest version of PHP and MySQL but I know they are working fine, so I'm wondering if it is something in the install.php code of Advanced poll 2.3
I get a message
PHP Notice: Undefined variable: HTTP_SERVER_VARS in C:\inetpub\wwwroot\polls\install.php on line 10
I think all the HTTP_*_VARS got depricated in PHP version 5. Even when I change them to things like $_SERVER['hhhhhh'] it still doesn't seem to work. Any ideas?
thanks
Michael Randall
|
|
09/09/2004 08:22:00
|
Anonymous
|
I changed the names of the variables and I also created a sqlite class. It works perfectly under PHP5. Did you check all the files?
|
|
18/10/2004 02:15:47
|
Bernt
Newbie
Joined: 17/10/2004 18:07:18
Messages: 1
Location: Norway
Offline
|
Mran66 wrote:Hi do you have any experience using setting up advanced poll on IIS using PHP version 5. I'm using MySQL as the database. I've just recently installed the latest version of PHP and MySQL but I know they are working fine, so I'm wondering if it is something in the install.php code of Advanced poll 2.3
I get a message
PHP Notice: Undefined variable: HTTP_SERVER_VARS in C:\inetpub\wwwroot\polls\install.php on line 10
I think all the HTTP_*_VARS got depricated in PHP version 5. Even when I change them to things like $_SERVER['hhhhhh'] it still doesn't seem to work. Any ideas?
thanks
Michael Randall
-------------------------
This works for me:
php\php.ini
register_long_arrays = on
(this is default set to off in PHP5.)
(HTTP_SERVER_VARS is a long array)
|
Bhudda dy. |
|
18/10/2004 10:02:30
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Or simply go back to PHP4. Given that most scripts are written for PHP4 I'd stick with it for the time being. Or edit your php.ini file as Bernt suggests.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
29/04/2005 07:27:25
|
Anonymous
|
My webhost just upgraded to php5. I'm excited about the new object oriented functions, but now the Guestbook won't add new entries.
I'm new to php. Do I even have access to the php.ini file to change the long arrays default since it's on my webhost? I don't think I do.
What would I have to change in the script to make it work under php5?
|
|
30/04/2005 16:16:29
|
Anonymous
|
Just upgrade to version 2.3.2
|
|
30/04/2005 16:38:43
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
PHP 5 does not support the old HTTP_GET_VARS variable by default and most hosts seem to either forget to turn it on or don't even know it exists. This is why one of the first things I did when making the Lazarus Guestbook (my guestbook based upon Advanced Guestbook 2.3.x) was to change them all to the short forms such as $_POST, $_FILES, $_COOKIES and what have you.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
08/07/2006 21:07:17
|
Michelle05
Newbie
Joined: 08/07/2006 21:02:57
Messages: 2
Offline
|
Is there any chance there will be a release of Advanced Poll with those variables changed to work with PHP 5? I'm not a PHP programmer, and my web host is not going to change register_long_arrays to on...
Otherwise is there a tutorial anyone knows of with hints of how I can make the name replacements myself?
|
|
08/07/2006 22:36:51
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
Check the downloads. You will see a new test version available.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
08/07/2006 23:11:20
|
Michelle05
Newbie
Joined: 08/07/2006 21:02:57
Messages: 2
Offline
|
Thanks for the quick reply. I dl'd the version on the script.php page yesterday, and it doesn't seem to be the PHP 5 version (code has 2.0.4 in header, has HTTP_POST_VARS etc). Is there another download area on the site? Sorry to be dense.
|
|
08/07/2006 23:56:04
|
Carbonize
Master
Joined: 12/06/2003 19:26:08
Messages: 4292
Location: Bristol, UK
Offline
|
You could go through the files replacing the relevant part
$HTTP_POST_VARS -> $_POST
$HTTP_GET_VARS -> $_GET
$HTTP_SERVER_VARS -> $_SERVER
$HTTP_COOKIE_VARS -> $_COOKIE
and the file one which I forget.
|
Carbonize
I am not the maker of the Advanced Guestbook
get Lazarus |
|
|