# \[Pro\] Viewing PHP Errors?

**URL:** <https://discourse.softpress.com/t/pro-viewing-php-errors/14639>\
**Category:** Freeway\
**Created:** [July 10, 2012, 8:54pm UTC](https://discourse.softpress.com/t/pro-viewing-php-errors/14639 "2012-07-10T20:54:22Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![RavenManiac](https://discourse.softpress.com/letter_avatar_proxy/v4/letter/r/91b2a8/32.png) [@RavenManiac](https://discourse.softpress.com/u/RavenManiac)\
**Post date:** [July 10, 2012, 8:54pm UTC](https://discourse.softpress.com/t/pro-viewing-php-errors/14639/1 "2012-07-10T20:54:22Z")

</div>

What’s the best way to view PHP errors?

* * *

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

---

<div class="post-metadata">

**Author:** ![waltd](https://discourse.softpress.com/user_avatar/discourse.softpress.com/waltd/32/2720_2.png) [@waltd](https://discourse.softpress.com/u/waltd)\
**Post date:** [July 10, 2012, 9:54pm UTC](https://discourse.softpress.com/t/pro-viewing-php-errors/14639/2 "2012-07-10T21:54:38Z")

</div>

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](http://freewaytalk.net/person/options)

* * *

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