Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[PHP] Headers

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming
View previous topic :: View next topic  
Author Message
scearezt
Cheater
Reputation: 0

Joined: 12 Feb 2011
Posts: 46

PostPosted: Sun Mar 27, 2011 10:35 am    Post subject: [PHP] Headers Reply with quote

    Cannot modify header information - headers already sent


I've made a login engine, and I've got this message when I tried to login with one of the accounts. It's a really frequent problem in PhP.

I can't solve it, becouse I need one of the prints before this header... Also I've tried the:
Code:
action"<?php echo $_SERVER['PHP_SELF']; ?>"

But it looks like the page wont refreshing itself, 'Cuz I need a header into my PhP.

Any suggestions? Idea?[/b]
Back to top
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Sun Mar 27, 2011 10:45 am    Post subject: Reply with quote

It means that there is data being sent to the client before you try to mess with the headers. Please try a Google search before asking a question here next time.

Google Search: "Cannot modify header information - headers already sent"
Solve PHP error: Cannot modify header information – headers already sent


Last edited by Innovation on Thu Apr 19, 2012 5:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
scearezt
Cheater
Reputation: 0

Joined: 12 Feb 2011
Posts: 46

PostPosted: Sun Mar 27, 2011 11:06 am    Post subject: Reply with quote

I know! I've already looked for it! But I still can't solve it as I said: "I need one of the prints before this header".

I need a way to make multiple headers...
Back to top
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Sun Mar 27, 2011 11:52 am    Post subject: Reply with quote

scearezt wrote:
I know! I've already looked for it! But I still can't solve it as I said: "I need one of the prints before this header".

I need a way to make multiple headers...

A header is only sent once. You can't change it once it's already sent, since it precedes all of the content.
Back to top
View user's profile Send private message
scearezt
Cheater
Reputation: 0

Joined: 12 Feb 2011
Posts: 46

PostPosted: Sun Mar 27, 2011 12:20 pm    Post subject: Reply with quote

I already know that... then how can I refresh the included file without refreshing the whole page Question
Back to top
View user's profile Send private message
Deltron Z
Expert Cheater
Reputation: 1

Joined: 14 Jun 2009
Posts: 164

PostPosted: Sun Mar 27, 2011 12:47 pm    Post subject: Reply with quote

Why would you need to print anything before headers? perhaps what you are looking for is ajax?
_________________
SharpDisassembler

"When I find my code in tons of trouble,
Friends and colleagues come to me...
Speaking words of wisdom:
Write in C."


#pragma message("Let there be byte!")
Back to top
View user's profile Send private message
Innovation
Grandmaster Cheater
Reputation: 12

Joined: 14 Aug 2008
Posts: 617

PostPosted: Sun Mar 27, 2011 1:27 pm    Post subject: Reply with quote

JQuery- Auto Refresh Div Every X Seconds
Back to top
View user's profile Send private message
atom0s
Moderator
Reputation: 205

Joined: 25 Jan 2006
Posts: 8587
Location: 127.0.0.1

PostPosted: Sun Mar 27, 2011 2:33 pm    Post subject: Reply with quote

Care to go into a bit more detail as to what you are trying to accomplish overall? You said you made a login system, but what are you attempting to do that is causing this issue to happen? You also shouldn't be 'refreshing' include files, that's not the point of PHP. And things like that should be handled client sided.
_________________
- Retired.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> General programming All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites