p2p.wrox.com Forums

p2p.wrox.com Forums (http://p2p.wrox.com/index.php)
-   Beginning PHP (http://p2p.wrox.com/forumdisplay.php?f=95)
-   -   trouble with header function (http://p2p.wrox.com/showthread.php?t=15895)

trangd July 24th, 2004 05:37 PM

trouble with header function
 
Hello folks,

I have used header() before and there wasn't any problems.
This time I'm getting error as below:

Warning: Cannot modify header information - headers already sent by (output started at /.....)

I looked over the code, everything was fine. I did use cookie too.

Does it have to do anything with javascript?
Does anyone run across this problem, please tell me what's wrong?

thanks in advance.

td


Snib July 24th, 2004 06:01 PM

You can not have PHP output anything before the call to header(), including whitespace.

See Rich's FAQ (under PHP -> FAQ -> redirection) for more information.

HTH,

Snib

<><


All times are GMT -4. The time now is 10:01 PM.

Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.