Re: [PHP] Error catching script

2003-10-08 Thread Curt Zirzow
* Thus wrote James Johnson ([EMAIL PROTECTED]):
> Hello,
> 
> Is there a way, on a hosted server, to prevent PHP errors from showing in a
> browser? Instead of "error whatever at line 107 in filename.php" to have it
> redirect to a "Sorry, please report this error page"

See:
set_error_handler();

http://php.net/set_error_handler

Curt
-- 
"My PHP key is worn out"

  PHP List stats since 1997: 
  http://zirzow.dyndns.org/html/mlists/

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



Re: [PHP] Error catching script

2003-10-08 Thread Chris Shiflett
--- James Johnson <[EMAIL PROTECTED]> wrote:
> Is there a way, on a hosted server, to prevent PHP errors from
> showing in a browser?

I am assuming you are asking how to change php.ini directives, since you
probably don't have access.

On most shared hosts, they are configured to use a .htaccess file (assuming
Apache), and you can set many php.ini directives here. The online manual is
very good at explaining which directives can be set where, so I recommend
reading that.

Chris

=
My Blog
 http://shiflett.org/
HTTP Developer's Handbook
 http://httphandbook.org/
RAMP Training Courses
 http://www.nyphp.org/ramp

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



[PHP] Error catching script

2003-10-08 Thread James Johnson
Hello,

Is there a way, on a hosted server, to prevent PHP errors from showing in a
browser? Instead of "error whatever at line 107 in filename.php" to have it
redirect to a "Sorry, please report this error page"

Thanks,

James

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