Thanks David. This was a fresh install.
I just turned off the error output with the script output and sent it to the log file instead.
I have read that with PHP you don't need to declare the variables but I guess this doesn't change the fact that PHP see's it has not been declared and reports it.
Charles
======================================
David Stockton wrote:
Just a guess, but you probably recently re-installed PHP and now the error reporting is on full strength. Usually the undefined variables occur when you are getting input from the web (GET or POST) and you are using a variable that has been passed in without testing it with isset().
Do like this:
if (isset($value1))
{
... do stuff with $value 1;
}
I'd bet that's what at least half the problem is.
The other solution would be to turn down the errors and warning reporting in your .ini file. But it's really a good idea to leave it up high when you are developing your application.
Dave