[Pro] Viewing PHP Errors?

What’s the best way to view PHP errors?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

If you have shell access to your server, then running tail (command-line tool) can give you a running commentary on your server’s log and show you what is happening in real time. If you’re just trying to see an error message in your page, you can add these two lines (inside a PHP block) to enable visible error messages. Note that you should never leave this running in production, as error messages can be useful to hackers.

<?php
ini_set('display_errors', true);
error_reporting(E_ALL);
?>

Walter

On Jul 10, 2012, at 4:54 PM, RavenManiac wrote:

What’s the best way to view PHP errors?


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options