| View previous topic :: View next topic |
| Author |
Message |
admin Site Admin
Joined: 23 Jan 2003 Posts: 256 Location: India
|
Posted: Thu Jan 30, 2003 2:54 pm Post subject: My PHP Script shows Notice on Undefined variable |
|
|
PHP Script shows Notice on Undefined variable
On our Windows 2000 UK Server PHP is configured to show Notice on enountering Undefined Variables.
To solve this problem you must define the variable before start using it.
Eg:
$varname = "";
OR
if(!isset($varname)){ $varname = ""; } |
|
| Back to top |
|
 |
admin Site Admin
Joined: 23 Jan 2003 Posts: 256 Location: India
|
Posted: Thu Jan 30, 2003 2:57 pm Post subject: php.ini |
|
|
php.ini is the configuration files used by PHP.
Showing Errors, Notices, can be configured by following lines
; - Show all errors, except for notices
;
;error_reporting = E_ALL & ~E_NOTICE
;
; - Show only errors
;
;error_reporting = E_COMPILE_ERROR|E_ERROR|E_CORE_ERROR
;
; - Show all errors except for notices
;
error_reporting = E_ALL; display all errors, warnings and notices |
|
| Back to top |
|
 |
|