PDA

View Full Version : PHP 'notices' after RC4 upgrade


Ewan
8th of April 2004 (Thu), 06:17
I've installed RC4 over RC2 without any problems except that I'm getting PHP notices on my index page for a php file that is included from the index. I did not get these before the update.

eg:

Notice: Use of undefined constant z - assumed 'z' in /nfs/home/oaktre2/public_html/sun.php on line 8


Line 8 is:

$today = date(z);

Is there a way to suppress these notices?

Please note: in the meantime I've stopped the file being called as some of the notices show my database login details.

Ewan
8th of April 2004 (Thu), 07:11
Added a @ and a few ' here and there.

Pekka
8th of April 2004 (Thu), 19:27
It is recommended to have notice messages off in php ini for live servers. If you want to make special error level settings per file, see http://fi.php.net/manual/en/function.error-reporting.php