scrubbicus Posted May 27, 2009 Share Posted May 27, 2009 So I developed some online thing on my computer and the PHP on my webhost is definitely different then that on my computer but the headers are being sent way to many times and it worked flawlessely on my computer but now it's all kinds of fucked up. I use header(Location:)s alot through the script for redirecting. At the beginning of my index.php I include my class file that starts a session as well as calls the main class, then after that on index.php if $_GET['page'] isn't sent then it redirects. That's all the headers on those pages then I have every other header on a page that does not have any of the HTML template just PHP code to verify certain things then when verified to redirects back to the original page with a message in a cookie that displays on the page. I'm not very good with headers apparently but any suggestions on how I might approach this kind of thing and fix what I got now? Quote Link to comment https://forums.phpfreaks.com/topic/159790-big-problem-with-headers/ Share on other sites More sharing options...
MadTechie Posted May 27, 2009 Share Posted May 27, 2009 Please explain what you mean by but the headers are being sent way to many times and how did you find this out ? Quote Link to comment https://forums.phpfreaks.com/topic/159790-big-problem-with-headers/#findComment-842788 Share on other sites More sharing options...
scrubbicus Posted May 27, 2009 Author Share Posted May 27, 2009 http://scrubbicus.com/simplebudget/index.php Then I have a page called verify.php that is probably just as messed up and that page is completely dedicated for verify information and inserting data and such. It's a whole page of elseif()s that check for a $_POST global that all my forms have in the hidden input field each one is different. Once it finds one through isset($_POST) then it continues on either verifying information or inputting table information when it's done it header redirects back to the original page. Quote Link to comment https://forums.phpfreaks.com/topic/159790-big-problem-with-headers/#findComment-843163 Share on other sites More sharing options...
MadTechie Posted May 27, 2009 Share Posted May 27, 2009 headers already sent by doesn't mean its a problem with the header() function You should of read the pinned post HEADER ERRORS - READ HERE BEFORE POSTING THEM as that explains this problem! Quote Link to comment https://forums.phpfreaks.com/topic/159790-big-problem-with-headers/#findComment-843222 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.