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
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
:
Subject: RE: [PHP-DB] Line of code
should work...but doesn't
07/24/2003 10:12
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
: 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
: [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
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:
[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
'
[EMAIL PROTECTED], [EMAIL PROTECTED]
07/24/2003 12:24 Subject: Re: [PHP-DB] Line of code
should work...but doesn't
PM