Forum Moderators: coopster
[edited by: jatar_k at 4:57 am (utc) on April 15, 2004]
[edit reason] removed personal url [/edit]
number of lines are doubled.
[edit]Sort of grasping at straws. This assumes that you are in fact uploading as ASCII and have ruled out that binary/ascii issue[/edit]
What do you mean doubled? Is it splitting lines in the middle? If so is there some wordwrap or line length issue with either your editor or your FTP client?
Or is it just inserting a blank line after the regular lines? In that case, it could (longshot) be related to incompatibilities in the newline characters?
Windows newline: cr + lf
Unix newline: lf
Mac newline: cr
Usually that's not a problem though and some FTP clients take care of it with ASCII files by translating the eol characters.
Also, Whitespace should be ignored in PHP, so doubling the number of lines should change anything.
You might have some setting in there that forces linebreaks even when they shouldn't be there, in other words, a linebreak is inserted anytime a linebreaks for display purposes, you want to get rid of that too if you can find that setting.
Why don't you post the parse errors you are getting, along with the code from that section and see if someone can figure it out.
I've never seen that on any windows upload I've done ever
The only problem I have seen is that when you save a file under windows and then upload it to CVS, it will diff the entire file b/c as far as the diff program has concerned, every line has changed.
I've never seen it cause a parse error under PHP.
Also I am still using the trial of CuteFTP.
I took a quick look and it seems that Anarchie is for OS 9 only.
Warning for Mac users: PHP seems not to like Mac end of lines character ("\r"). So ensure you choose the option that allows to use the *nix end of line character ("\n") in your text editor before registering a script you have modified.