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

From: Date: Mon, 16 Aug 2004 15:19:53 +0000
Subject: RE: [PHP] php die function for MySQL connection errors
Groups: php.general 
Request: Send a blank email to php-general+get-193950@lists.php.net to get a copy of this message
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"); > > > > > are you sure? Yes. In fact, I was too conservative -- the HTTP RFC says it *must*. See: http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.30 and http://www.w3.org/Protocols/rfc2616/rfc2616-sec3.html#sec3.2 Just because many browsers accept and process a non-standard header is no reason to write non-standard headers... ;) Cheers! Mike --------------------------------------------------------------------- Mike Ford, Electronic Information Services Adviser, Learning Support Services, Learning & Information Services, JG125, James Graham Building, Leeds Metropolitan University, Headingley Campus, LEEDS, LS6 3QS, United Kingdom Email: m.ford@leedsmet.ac.uk Tel: +44 113 283 2600 extn 4730 Fax: +44 113 283 3211

« previous php.general (#193950) next »