Re: or-die option - Opinions please...
| From: | Burhan Khalid | Date: | Mon, 03 Jan 2005 10:07:04 +0000 |
| Subject: | Re: or-die option - Opinions please... | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-205497@lists.php.net to get a copy of this message | ||
gustav@varupiraten.se wrote:
Hi there all! I'm thinking of the "or die" suffix (or option or whatever it is called)... I can use or die together with opening a db. open_mysqldb("bla.bla.") or die("couldn't connect to db"); But this is just useful when developing? I don't want my users to see that a specific table can't be opened? Or do I want that? What's your opinion?For production sites, turn of error reporting and turn on error logging, or write your own error handler functions. --Burhan