RE: [PHP] Warning: Undefined variable
| From: | Martin Towell | Date: | Tue, 02 Apr 2002 02:34:24 +0000 |
| Subject: | RE: [PHP] Warning: Undefined variable | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-91063@lists.php.net to get a copy of this message | ||
maybe the reporting of warning is turn off for the php3 installation, but
turned on for the php4 installation.
-----Original Message-----
From: kip [mailto:kenny_ip@hotmail.com]
Sent: Tuesday, April 02, 2002 12:21 PM
To: php-general@lists.php.net
Subject: [PHP] Warning: Undefined variable
Hi,
As i know we don't need to define a variable before in PHP. But i have a
very strange case. In my server, i hosted a PHP website. When i update the
server from PHP3 to PHP4, problems came out. Most of the php pages didn't
work and display many warnings like that :
"Warning: Undefined variable: variable_name". In fact, nobody has changed
the code and all of the pages are working property in PHP3 server. So, does
anyone know what happen? I also contact the hosting company, but they said
that everything is working fine and they don't know what problem is it.
Thats why i have no idea how to correct it.
Thanks.
Kenny
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php