faqts : Computers : Programming : Languages : PHP

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

33 of 90 people (37%) answered Yes
Recently 6 of 10 people (60%) answered Yes


Undefined variable error? Code runs on fine one site and not on the other!

Dec 23rd, 2004 12:36
Matthew Wilkinson, Jim Lawrence,

This is probably caused by the error reporting level. The PHP engine
will only spit out a warning about variables that have not been set yet
if the error reporting is set to it's highest using the function:
If you can find this anywhere in your code, I suggest you comment it out
if you don't want those variable warnings, else you go through your code
and set those variables before you use them.