HI,
Are you including this file? or is this php script run directly? If you're including, then look into the parent file for the problem.
Are you sure you're updating the file on your remote server, maybe the file is still the old one with the error?
What are you using to edit your php file?
Have you tried editing the file directly on your server? Eg: using a shell access, or some web based control panel (Cpanel/Ensim etc.)
Reason youre getting this error:
sessions are implemented either as cookies or via the url. In your case, cookies, and the session cookie cannot be sent. A cookie is actually a http header.
HTTP headers need to be sent before HTTP Content (PHP output).
So some http content is already being sent somewhere... even though your script looks fine.
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101
Ok...
Try this.
Open your script in notepad. (do not use dreamweaver).
Delete everything before the <?
Make sure <? is right at the top.
Then save the script as plain text. say "file.txt"
Upload it to your sever via ftp, don't use dreamweaver.
In ftp, rename your txt file back to the php extension.
Make sure you are uploading your files as binary. This can be done with most ftp programs.
Usually, if this is a problem with the upload, then the whole file should be "bad". But it just seems that the file on your Linux server, has some text added before the <?. So it could also be the editor, which is dreamweaver, so dont use it.
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101