Re: What would stop header("Location...) from working?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tedd schreef:
Hi gang:

I just had a script stop following this statement:

   header("Location:users.php");

It *was* working, but now instead of running "users.php", it defaults to the parent script.

When I place exit() after it, such as:

   header("Location:users.php");
   exit();

The script simply exits. It does not continue to users.php -- BUT -- it did.

What would stop this statement from working?

Thanks,

tedd


If ANYTHING is output before header(), it stops working. Did you turn off error reporting? You might want to double-check, because it returns an error if anything is output.

--
Kind regards,
Mark Cilissen / Pixlism

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux