louis_coetzee Posted March 13, 2009 Share Posted March 13, 2009 hi, I get header already send on .... errors, on my linux server at www.hetzner.co.za but not on my wamp testing server. I had posted before and was given advice to enable output buffering on linux server since it is enabled on wamp by default. Requested this from hetzner but still have the same problem, can anyone help me please for my PHP INFO visit: http://www.cofin.co.za/phpinfo.php Please I need to get this resolved very soon. Thanks, Louis Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/ Share on other sites More sharing options...
ratcateme Posted March 13, 2009 Share Posted March 13, 2009 enabled on wamp by default i dont see how that would be possible it might be that your wamp testing server has error display turned off so you dont get the errors without seeing your code it is very hard but i guess you have a header() after a echo or html outside <?php tags Scott. Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/#findComment-783576 Share on other sites More sharing options...
louis_coetzee Posted March 13, 2009 Author Share Posted March 13, 2009 Would'nt the process also stop like on my linux server, cause I don't get errors, and everything just keeps on flowing as it should on wamp. Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/#findComment-783580 Share on other sites More sharing options...
Mchl Posted March 13, 2009 Share Posted March 13, 2009 I did not suggest to enable output buffering on your linux machine. I only explained why you didn't get those errors on WampServer. If you want to fix the errors, disable output buffering in Wamp, and read the sticky in this forum that deals with header errors. Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/#findComment-783583 Share on other sites More sharing options...
louis_coetzee Posted March 13, 2009 Author Share Posted March 13, 2009 Okay, what I did now was to put ob_start() in the top of my index file which requires the other pages inside of it...this solves the problem, but why is this not a good idea? If someone can explain this to me I would appreciate it. I am new to all this so please be nice. Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/#findComment-783589 Share on other sites More sharing options...
Mchl Posted March 13, 2009 Share Posted March 13, 2009 Did you read this? http://www.phpfreaks.com/forums/index.php/topic,37442.0.html Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/#findComment-783592 Share on other sites More sharing options...
louis_coetzee Posted March 13, 2009 Author Share Posted March 13, 2009 Yes I did, but like I said, now it does what I want it to do. It's working 100% like I intended. Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/#findComment-783593 Share on other sites More sharing options...
sKunKbad Posted March 13, 2009 Share Posted March 13, 2009 I had a similar issue recently. I use Notepad++, and Notepad++ defaults to saving files as UTF-8 with BOM. Once I saved as UTF-8 without BOM, the problem went away. Link to comment https://forums.phpfreaks.com/topic/149215-header-errors-on-linux-but-not-on-windows-still/#findComment-783594 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.