homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Visit PubCon.com
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

PHP Warnings on 1 server but not on another

 7:21 pm on Jul 31, 2008 (gmt 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!



 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.


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

Correct, i had to turn off register_globals


 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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved