[PHP] Die Page, Die! (Was: Preview button to show PDF without submitting post data?)

2009-11-08 Thread Dave M G
PHP List, Okay, so I've got a nice situation where a form has a preview button as well as a submit button. When the user presses "Submit", the page reloads, and it emails a PDF. If the user presses "Preview", it launches a new page in a new window, and also outputs a PDF directly to the user so t

[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

[PHP] die! die! directory!

2002-02-08 Thread hugh danaher
Help! I've been beating on a problem all day and think I've isolated the problem to the following line: print ""; If I call the statement as is, I get a little red x where my map should be. In earlier calls to the same directory, I can get a server error, misconfiguration... if I change

RE: [PHP] Die

2001-12-11 Thread Jon Haworth
> Hi, > > If I use die or exit() it break execution of php script but also > browswer stop parsing html code. How to avoid this? > Use proper error handling instead of die()? Let's face it, die() is for when your script needs to, well, die Cheers Jon -- PHP General Mailing List (http:/

[PHP] Die

2001-12-11 Thread Max
Hi, If I use die or exit() it break execution of php script but also browswer stop parsing html code. How to avoid this? Regards.Max. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the li