Re: error display problem

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Saturday 14 May 2005 09:49, hima wrote:

> can any one plesae help me as I am a learner. I am
> working on a Mac OS x machine and I want to see the
> errors displayed to the browser. I had changed
> display_errors option On in
> the php.ini file but still cannot see them displayed.

Did you restart the webserver?

> Any pointers as how to display errors to browser while
> working on Mac machine, really appreciated.

Anyway, putting the following at the beginning of your code will allow you 
to see all errors regardless of the server setting:

    error_reporting(E_ALL);
    ini_set('display_errors', TRUE);

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
New Year Resolution: Ignore top posted posts

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux