RE: [PHP] header problems

2004-04-08 Thread Jay Blanchard
[snip]
I keep getting this header error.
[/snip]

Which header error? Like, the one where it says you can't do it again?
It is because you have caused some output somewhere prior to the
invocation of you header request to the new location. 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP] header problems

2004-04-08 Thread John W. Holmes
From: Brent Clark [EMAIL PROTECTED]

 I need to display a javascript window with some text displayed in to.
 After the execution and displaying of this windows, I have two executable
php script that perform some task for me.
 After all this I need the page to direct to another page.

Use a Javascript redirect, since displaying your javascript window is output
to the browser and you can't use header() redirection after there's been
output.

Or rethink your logic.

---John Holmes...

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP] header problems

2002-05-12 Thread Jason Murray

 Can anyone tell me if there is any reason why this would not 
 be working?
 
 mysql_connect($DBhost,$DBuser,$DBpass) or die(header(Location:
 error.php));

Why bother calling die() at all there?

?
   if ($mysql != mysql_connect($DBhost,$DBuser,$DBpass))
   {
 Header(Location: error.php);
 Exit();
   }
?

J

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




Re: [PHP] header problems

2001-01-26 Thread Teodor Cimpoesu



Kurth Bemis wrote:
 
 when i put this
 header('location: $url');
 
 i get this
 
 http://domain.com/$url
 
 what the hell am i doing wrong?
 
erm,
header ("Location: $url");

[double quotes, so PHP will consider your dollars, yens or whatever]

--teodor

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]