On Wed, April 25, 2007 8:25 am, Don Don wrote: > Hi all, whats the best way to perform a redirect after out put has > started ? using header:location will not work unless theres been no > output. The BEST way is to re-structure your code logically, with the heavy lifting calculations done up-front, and the HTML output at the end, long after any decision about headers has been done. The SECOND BEST way is to just turn on output_buffering in php.ini or with http://php.net/ob_start so PHP can pull your ass out of the fire you've built around yourself. -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php