jungleme0w Posted January 18, 2007 Share Posted January 18, 2007 Hello,b4 u start abusing, yes, i did read the sticky.http://www.phpfreaks.com/forums/index.php/topic,37442.0.htmlIts example is perfect for me, login and all. But i dont understand the solution.my login script is;http://junglecat.freehostia.com/uploads/login.txt"Cannot modify header information - headers already sent by (output started at /home/www/mydomain.com/index.php:2)"someone...help...me! please! Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/ Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 That's not your index.php file is it. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163413 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 login.txt is my login.php, login.php is "include" into index.php Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163417 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 "Cannot modify header information - headers already sent by (output started at /home/www/mydomain.com/index.php:2)"Okay the error is on index.php, line 2. We need to see index.php. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163432 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 http://junglecat.freehostia.com/uploads/index.txtline 2 is a <script> tag. its for a popup javascript, see the bottom of that page for the php Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163444 Share on other sites More sharing options...
fiat Posted January 18, 2007 Share Posted January 18, 2007 you haveinclude('login.php')you needinclude ('login.php');need semicolon. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163446 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 Yeah you can't output ANYTHING to the browser before doing any header, session, etc.EVER.You have to include your processing stuff which sets cookies, redirects, etc, BEFORE any HTML EVAR. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163447 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 so wat do i do then? Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163476 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 Reorganize your code. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163478 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 elabaorate on that...(i know nothing bout php its not my code) Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163488 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 Then get the coder to fix it. If you want to learn, you'll have to start somewhere. If you didn't write ANY of it, that's going to be hard. You could try paying someone to redo it if you don't want to learn.The processing needs to be before any output. That's all I can elaborate. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163495 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 u seam to know what ur talking about...so....can you "re-arange" it? remove the bit thats cauing problems? ireally dont understand.... Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163500 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 If you want me personally to fix it I'd have to charge you my $30/hour, because that's more extensive then just helping on the forum. Feel free to contact me if you want me to. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163502 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 i'll give u 30 fun bucks??didnt think so.can anyone else help... Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163509 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 No, US Dollars, not "Fun Bucks".You asked if I could help you and I replied. No need to be rude.Why can't you ask the person who coded it? Or start trying to do it yourself? Just seperate out the processing code from the output, and make sure you never put HTML before you try to set a cookie. Best way to learn is to start working on it. Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163511 Share on other sites More sharing options...
anatak Posted January 18, 2007 Share Posted January 18, 2007 is this solved ?I can T look at your http://junglecat.freehostia.com/uploads/index.txtfilealso I think you are displaying your login information of you dbmysql_connect("asdad", "mdadql", asasdador die(mysql_error()); mysql_select_db("miadadql") or dieada(mysql_error()); always a bad thingie Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163512 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 US dollars? wow... thats like 50 AU dollars. i could buy some ram with that.anyway i started choping it and half and got it working Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163516 Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 Good job. See, wasn't that hard :) Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163517 Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 its just like putting your <head> sections above your <body> section in html. Thats an easy way of explaining it...my mysql info is like that so u cant use it/delete it/look at it etc... Link to comment https://forums.phpfreaks.com/topic/34675-header-errors/#findComment-163523 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.