RE: [PHP-WIN] Headers Already Sent - How To Overcome????

2004-11-04 Thread Svensson, B.A.T. (HKG)
Is there a command or someway to get around this problem without hacking out all of the other header sending code? Yes there is: check out out: ob_start(), ob_clean and ob_flush(). Put an ob_start() start at the very first line of your code, and just before you send the header information, do

RE: [PHP-WIN] Headers Already Sent - How To Overcome????

2004-11-03 Thread Vail, Warren
Any echo or print statements executed prior to executing the header statement (such as displaying variables for debugging) will cause this to occur. The line number mentioned in the warning message should tell you which statement actually produced output prior to the header (if there are several,

Re: [PHP-WIN] Headers Already Sent - How To Overcome????

2004-11-03 Thread Sudeep
Hi, Add this line at the top of the page: ?php ob_start(); ? Your problem will be solved. ...SuDeEp... MikeA [EMAIL PROTECTED] wrote: I am trying to do the following header (Location: wlserver/index.php?userKey=$userKeyshow=$userKey); but I keep getting Warning: Cannot modify header