Welcome to WebmasterWorld Guest from 54.224.148.71

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP Warnings on 1 server but not on another

     
7:21 pm on Jul 31, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:July 28, 2006
posts:168
votes: 0


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

7:33 pm on July 31, 2008 (gmt 0)

Senior Member

WebmasterWorld Senior Member eelixduppy is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:Nov 12, 2005
posts:5966
votes: 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.

8:04 pm on July 31, 2008 (gmt 0)

Junior Member

5+ Year Member

joined:July 28, 2006
posts:168
votes: 0


Correct, i had to turn off register_globals
2:36 am on Aug 1, 2008 (gmt 0)

Full Member

5+ Year Member

joined:Mar 22, 2008
posts: 315
votes: 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.