|
Posted by Erwin Moller on 12/27/05 11:05
Michael wrote:
> Hi,
> I've just started with PHP and am picking up my error msgs from the
> Apache log file. Is there any way to force the error msgs to appear in
> the browser window?
Yes,
During development it is much easier if you just let them appear during
scriptexecution.
You can do this in different ways.
If you have your own server, just edit php.ini, and look for ERROR_REPORTING
in it.
Read what it says before changing.
You probably want E_ALL
If you do not have access to php.ini, you can just start all your scripts
with with this directive by using ini_set().
Look it up here:
http://nl2.php.net/ini_set
Now find the name/value pair, and just set it.
The difference between php.ini and ini_set is that the former sets
directives for ALL PHP scripts on the server, and the latter just sets
something for the duration of your script.
Good luck
Regards,
Erwin Moller
> Thanks,
> M. McDonnell
[Back to original message]
|