Welcome Guest, Not a member yet? Register   Sign In
catch Parse error: syntax error ?
#1

[eluser]dexter21[/eluser]
Hi all,

i am trying to catch errors of this type "parse error" , i have update all my error pages in /system/aplications/errors but no one of them report me the error when i have an parse error. i get only a message "Parse error: syntax error, unexpected T_VARIABLE....." Anyone know how to catch this kind of errors?

Many thanks
#2

[eluser]NogDog[/eluser]
Parse errors occur and are processed by PHP before any of your application code - including error handlers - is executed; so the only way you can control their processing to any extent is via the PHP environment, either through php.ini settings and/or .htacess php_value/php_flag settings. (And of course many editors/IDEs have built-in syntax error-checking which obviates the need to trap them by actually running the script on the test/production host.)




Theme © iAndrew 2016 - Forum software by © MyBB