[PHP] die function

2005-03-21 Thread Barbara Picci
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 function in a e-mail that say me

Re: [PHP] php die function for MySQL connection errors

2004-08-16 Thread raditha dissanayake
Ford, Mike [LSS] wrote: On 14 August 2004 15:50, raditha dissanayake wrote: Ford, Mike [LSS] wrote: (And, BTW, the HTTP definition says that the Location: header should specify a full absolute URL, so that should be: header("Location: http://your.server.name/path/to/error

RE: [PHP] php die function for MySQL connection errors

2004-08-16 Thread Ford, Mike [LSS]
On 14 August 2004 15:50, raditha dissanayake wrote: > Ford, Mike [LSS] wrote: > > > > > (And, BTW, the HTTP definition says that the Location: > header should specify a full absolute URL, so that should be: > > > > header("Location: > http://your.server.name/path/to/errors/servererror.php";);

Re: [PHP] php die function for MySQL connection errors

2004-08-14 Thread raditha dissanayake
Ford, Mike [LSS] wrote: (And, BTW, the HTTP definition says that the Location: header should specify a full absolute URL, so that should be: header("Location: http://your.server.name/path/to/errors/servererror.php";); are you sure? -- Raditha Dissanayake. --

RE: [PHP] php die function for MySQL connection errors

2004-08-14 Thread Ford, Mike [LSS]
> -Original Message- > From: John Gostick > Sent: 14/08/04 15:19 > I have a quick question about using the PHP die() function. [...] > I changed the code to this: > > $connection = mysql_connect($host, $user, $password) >or die("Error connec

Re: [PHP] php die function for MySQL connection errors

2004-08-14 Thread raditha dissanayake
John Gostick wrote: Hi, I have a quick question about using the PHP die() function. I'm building a site around a MySQL database, and when I connect to the database from a PHP page I use the following code: $connection = mysql_connect($host, $user, $password) or die("Error connect

[PHP] php die function for MySQL connection errors

2004-08-14 Thread John Gostick
Hi, I have a quick question about using the PHP die() function. I'm building a site around a MySQL database, and when I connect to the database from a PHP page I use the following code: $connection = mysql_connect($host, $user, $password) or die("Error connecting to SQL serve