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! Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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. Quote Link to comment 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. Quote Link to comment Share on other sites More sharing options...
jungleme0w Posted January 18, 2007 Author Share Posted January 18, 2007 so wat do i do then? Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 Reorganize your code. Quote Link to comment 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) Quote Link to comment 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. Quote Link to comment 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.... Quote Link to comment 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. Quote Link to comment 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... Quote Link to comment 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. Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
Jessica Posted January 18, 2007 Share Posted January 18, 2007 Good job. See, wasn't that hard :) Quote Link to comment 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... Quote Link to comment 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.