santhana_lakshmi — 2011-06-24T02:51:53-04:00 — #1
The code that executed in php 5.2.6 is not executing in php 5.3.6.I am getting an error "Undefined variable","Undefined offset".Please help me to fix this problem.
guido2004 — 2011-06-24T02:53:52-04:00 — #2
Can you post the part of the code that is generating the error?
raju_gautam — 2011-06-24T05:36:59-04:00 — #3
I think they are called Notices. If you have only few problems then you have to define the variables before you use or if you have check if the variable is already defined or not with isset() function.
If you have lots of such notices, then you may want to switch off the Notices either by changing the error reporting from ini or with the function error_reporting(). See the examples and descriptions in php.ini file of your local:
; Default Value: E_ALL & ~E_NOTICE
; Development Value: E_ALL | E_STRICT
; Production Value: E_ALL & ~E_DEPRECATED