require_once not showing parse errors
Posted: Sat Nov 29, 2008 4:52 pm
Hi all,
I have some code that includes another file using the require_once function, however there were some parse errors in that file and my script simply died. There were no errors shown, the html output simply ended where the require_once call for that file was. I eventually figured out the problem by going line by line and commenting out code until I found the offending parse error.
Other code with parse errors definitely caused parse errors to show up on the webpage, so my question is this:
Why are there no parse errors being generated for the included code? Any ideas? Is there any PHP setting I should check?
Thanks,
lowmips
I have some code that includes another file using the require_once function, however there were some parse errors in that file and my script simply died. There were no errors shown, the html output simply ended where the require_once call for that file was. I eventually figured out the problem by going line by line and commenting out code until I found the offending parse error.
Other code with parse errors definitely caused parse errors to show up on the webpage, so my question is this:
Why are there no parse errors being generated for the included code? Any ideas? Is there any PHP setting I should check?
Thanks,
lowmips