Welcome to WebmasterWorld Guest from 54.226.46.6

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

PHP Warnings on 1 server but not on another

     

ryan_b83

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

5+ Year Member



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)

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



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)

5+ Year Member



Correct, i had to turn off register_globals

webfoo

2:36 am on Aug 1, 2008 (gmt 0)

5+ Year Member



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.
 

Featured Threads

Hot Threads This Week

Hot Threads This Month