What THe Heck DOes THIS ERROR MEAN!

 
Post new topic   Reply to topic    Aprelium Forum Index -> PHP
View previous topic :: View next topic  
Author Message
00squeaky
-


Joined: 11 May 2004
Posts: 60

PostPosted: Sat Jul 17, 2004 12:25 am    Post subject: What THe Heck DOes THIS ERROR MEAN! Reply with quote

whenever i try to seta cookie, i get this:

Warning: Cannot modify header information - headers already sent by (output started at /home/freehost/public_html/ggzone/login.php:9) in /home/freehost/public_html/ggzone/login.php on line 31

Warning: Cannot modify header information - headers already sent by (output started at /home/freehost/public_html/ggzone/login.php:9) in /home/freehost/public_html/ggzone/login.php on line 32

Warning: Cannot modify header information - headers already sent by (output started at /home/freehost/public_html/ggzone/login.php:9) in /home/freehost/public_html/ggzone/login.php on line 33


anyway to fix this?
_________________
Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf)
Back to top View user's profile Send private message
iNaNimAtE
-


Joined: 05 Nov 2003
Posts: 2381
Location: Everywhere you're not.

PostPosted: Sat Jul 17, 2004 8:21 am    Post subject: Reply with quote

I've seen that changing your session_save.path can fix these errors sometimes.

Find that variable in your php.ini setting, and make sure it is set right.

Now this only worked for me one, and usually it will also output something about the session, but try it anyway.

Is this even your server?
_________________
Bienvenidos!
Back to top View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Sat Jul 17, 2004 5:13 pm    Post subject: Re: What THe Heck DOes THIS ERROR MEAN! Reply with quote

00squeaky,

Nothing should be written before sending the headers using header(). So review your code any remove any echo or print statements before header(). Even a included a HTML space can cause the problem.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
00squeaky
-


Joined: 11 May 2004
Posts: 60

PostPosted: Sat Jul 17, 2004 8:37 pm    Post subject: Reply with quote

i did. there is nothing above the <HTML> tag, nor is their any <HTML> tag. all i am trying to do is the setcookie() function.
_________________
Languages mastered:
HTML,GML,C,PHP,MYSQL (not really a language, but wtf)
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Jul 21, 2004 1:07 am    Post subject: Reply with quote

00squeaky wrote:
i did. there is nothing above the <HTML> tag, nor is their any <HTML> tag. all i am trying to do is the setcookie() function.

Paste your code here if it isn't too long or send it to support@aprelium.com . We'll tell you what's wrong with it.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
Foxified
-


Joined: 13 Apr 2004
Posts: 487
Location: Canada

PostPosted: Thu Jul 22, 2004 2:18 am    Post subject: Reply with quote

iNaNimAtE wrote:
I've seen that changing your session_save.path can fix these errors sometimes.

Find that variable in your php.ini setting, and make sure it is set right.

Now this only worked for me one, and usually it will also output something about the session, but try it anyway.

Is this even your server?

I dont think it is, it says in the directories "freehost", so , unless he has that in his Abyss server.. I doubt its on his site.
_________________
Back to top View user's profile Send private message Visit poster's website AIM Address MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> PHP All times are GMT + 1 Hour
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


Powered by phpBB phpBB Group