Error handling

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Simon Angell
Forum Commoner
Posts: 45
Joined: Fri Jan 24, 2003 12:14 am

Error handling

Post by Simon Angell »

Hi.

Im just wondering if there is anyway to ignore php script errors, and keep on loading my pages, instead of halting and displaying the error (which in this case is max time exceeded...) or can i adjust the Timeout length, which is currently 30 seconds????
User avatar
mudkicker
Forum Contributor
Posts: 479
Joined: Wed Jul 09, 2003 6:11 pm
Location: Istanbul, TR
Contact:

Post by mudkicker »

you can set it with ini_set() and you can ignore the function errors by unsing @ operator.

for example:

@mysql_connect()
User avatar
samsbox
Forum Newbie
Posts: 4
Joined: Mon Apr 19, 2004 2:52 am
Location: Telford, UK

Post by samsbox »

You can also use error_reporting(0) as well
Post Reply