Forums / Installing on a Windows Server / cannot send session - php spaces problem (I think)

cannot send session - php spaces problem (I think)

Locked

Started by retro_haven on 25 Oct 2006, 8:34 PM · Views: 2,249

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
25 Oct 2006, 8:34 PM
#1
retro_haven avatar

retro_haven

New Zenner

Join Date:
Feb 2006
Posts:
11
Plugin Contributions:
0

cannot send session - php spaces problem (I think)

Hi,

Similar to some other threads on the forum i am getting Cannot send session cookie - headers already sent by (output ...etc. etc.

According to some answers its spaces at the start/end of the offending .php files causing the problem.

I can find the spaces in the files, but i CANNOT get them to be rid of the space.

I tried editing the file with flashfxp and resending it - space comes back.

I tried downloading it, editing in wordpad etc closing the file, reopening it space is gone - re-upload it - the space is BACK!

The only thing i got working properly is to rename the file with a .txt extension upload it and rename it there - THAT kills the space.

Any ideas on how to upload without getting the space inserted?

its mystifying as i am using the same programs and host I used previously to get a successful shop up and running a few months ago. I just tried to send a .php file there as well and yup...space in there....

25 Oct 2006, 8:43 PM
#2
retro_haven avatar

retro_haven

New Zenner

Join Date:
Feb 2006
Posts:
11
Plugin Contributions:
0

Re: cannot send session - php spaces problem (I think)

Follow up... Used my Mac to upload and all is now well - still doesn't answer the question tho...

26 Oct 2006, 10:24 PM
#3
dbltoe avatar

dbltoe

Totally Zenned

Join Date:
Jan 2004
Location:
N of San Antonio TX
Posts:
9,896
Plugin Contributions:
21

Re: cannot send session - php spaces problem (I think)

if there are one or two occasionally, there is no problem. Several generally means a space or extra line after the ending ?>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.
Zen Cart Certified hosting at myZenCartHost.com