Forum Moderators: coopster
Notice: Undefined offset:
Notice: Undefined variable: PHP_SELF
Notice: Undefined variable: op
Notice: Use of undefined constant userbox - assumed 'userbox'
Notice: Constant _LOGINCREATE already defined
Notice: Undefined variable: REMOTE_ADDR
Undefined offset: 3
Notice: Undefined offset: 323
---------
A few questions (sorry):
1. is there anything I can do on the php.ini to nullify these errors?
2. Do these errors matter (in terms of performance, security)? The server is very powerful and can draw a page within 0.0x seconds even if 500+ people are online.
3. Can these be fixed? Do I ask the programmer to take another look? What will happen if I install 4.3.11 or 5.0? is there a safe way to program (minimal /standard features), so the script still works?
4. My (spaces) are showing as? (question marks). Is that a php or apache thing? How do I fix it?
sorry for all the questions, and any help is greatly appreciated,
Thanks again,
---------added----------
On another server I have no errors at all. Could it be the Zend version, cli vs cgi...?
PHP 4.3.8 (cli) (built: Aug 1 2004 14:08:21)
Copyright (c) 1997-2004 The PHP Group
Zend Engine v1.3.0, Copyright (c) 1998-2004 Zend Technologies
with the ionCube PHP Accelerator v1.3.3r2, Copyright (c) 2001-2002, by Nick Lindridge
would installing php again (not by rpm this time) fix any of these errors or..? I'm trying to figure out why I had no errors on the other server. The reporting and logging were on there too, yet no errors.
4.3.8 (cli) no errors (fedora too)
PHP 4.3.10 (cgi) + Zend Extension Manager v1.0.6,+Zend Optimizer v2.5.7 plenty of errors
For now I disabled the warnings, but if he replaces the variables that cause the errors, I should be fine, correect? Will new problems appear again on the next php update?
thanks again,
Your programmer is probably used to programing without E_NOTICE errors showing. This is not such a big deal. Some of the most popular scripts out there, like phpBB2, will show E_NOTICE errors if you remove their native error handling - I haven't tested so many scripts, but all of the really popular scripts I've tested so far show E_NOTICE errors here and there. So your programmer is definitely not alone - this is probably the norm. The norm [i]should]/i] be programming without E_NOTICE errors, but unfortunately this isn't the case.
Yes, if you just set error handling to zero, with future PHP updates, these shouldn't show. That's how PHP is configured.
when I update php again, via yum, will my preferences be saved or do I have to edit them again?