[PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread J. Michael Roberts
I've been going a little crazy here with a single line of code that should work, but doesn't. It's probably has something to do with the fact that I've been staring at pages of code for months on end. In order to make user that nobody is screwing with the database while the daily backups and

RE: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread Aaron Wolski
if (strftime(%H) == 03) { header( Location: maintainence.php ); exit; } Note the exit; line. Aaron -Original Message- From: J. Michael Roberts [mailto:[EMAIL PROTECTED] Sent: July 24, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Line of code should work

RE: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread jeffrey_n_Dyke
: Subject: RE: [PHP-DB] Line of code should work...but doesn't 07/24/2003 10:12

Re: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread J. Michael Roberts
Message- From: J. Michael Roberts [mailto:[EMAIL PROTECTED] Sent: July 24, 2003 10:09 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Line of code should work...but doesn't I've been going a little crazy here with a single line of code that should work, but doesn't. It's probably has something

RE: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread Hutchins, Richard
: Thursday, July 24, 2003 10:34 AM To: [EMAIL PROTECTED] Subject: RE: [PHP-DB] Line of code should work...but doesn't I'll admit right up front that this is an educated guess, but I think you need to provide an absolute path for the location. header(Location: http://yoursite/yourdir

RE: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread Aaron Wolski
: [PHP-DB] Line of code should work...but doesn't I'll admit right up front that this is an educated guess, but I think you need to provide an absolute path for the location. header(Location: http://yoursite/yourdir/maintenance.php;); Quoted from the online docs: Note: HTTP/1.1 requires an absolute

Re: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread CPT John W. Holmes
I never use a full URI unless I am directing to a secure server and things always work on my end. Works either way I guess? There's a big difference between works and the right way to do it... ---John Holmes... -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread John W. Holmes
[EMAIL PROTECTED] wrote: this may work, but i hesitate, i've _never_ had to use exit to get my code to excecute a redirect. and i'm heavily reliant on this function. I say again: There is a big difference between works and the right way to do it. Think about it logically... if you are going to

Re: [PHP-DB] Line of code should work...but doesn't

2003-07-24 Thread jeffrey_n_Dyke
' [EMAIL PROTECTED], [EMAIL PROTECTED] 07/24/2003 12:24 Subject: Re: [PHP-DB] Line of code should work...but doesn't PM