[PHP] Re: die function

2005-03-23 Thread Barbara Picci
Hi all, just to give you another solution that I've successfully adopted: function die_script($errmsg) { $sendto = "[EMAIL PROTECTED]"; $from = "[EMAIL PROTECTED]"; $subject = "FAILED"; $message = "CONNECTION FAILED\nTYPE OF ERROR:\n" . mysql_error();

[PHP] Re: die function

2005-03-21 Thread Jason Barnett
Barbara Picci wrote: > Hi all, > > I have a machine that must insert in cron in a mysql db in another > remote machine. > The problem is that I cannot know if the connection in the first machine > (adsl) go down because no entry in the machine log is generated. I would > like to redirect the die fu