Hello I am wondering why on one server I need to declare a variable to be an array and on another server I don't? I know it is proper of me to declare my variables correctly but in the situation that i have a large CMS on one server which needs to be moved over to another server I am getting parse errors everywhere.
Is it a matter of changing how "strict" php parses?
Thanks in advance! Ryan
eelixduppy
7:33 pm on Jul 31, 2008 (gmt 0)
It depends on the warning. What kind of warning are you getting? Are you getting undefined variable errors?
The only PHP settings that should matter are register globals and your error reporting level or error logging/displaying.
ryan_b83
8:04 pm on Jul 31, 2008 (gmt 0)
Correct, i had to turn off register_globals
webfoo
2:36 am on Aug 1, 2008 (gmt 0)
On older versions of PHP, one had to define the fwrite() function. You might be getting in trouble for redefining that function, especially with a cms.