Reply to Re: Can I make error msgs appear in the browser window?

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация