• 0

[PHP] [FTP] Problem


Question

Hi,

I think this is the right place to post as its part of web design and maybe other web designers have had the same problem - I've been recently having this problem with an ftp client that's driving me nuts and i can't seem to google a solution.

Basically, whenever i transfer a .php file from my local machine to hosting server, my ftp client edits the code within the file and displays it all on 1 line during the transfer. So on the other end (server) the file doesn't work because it messes up the code.

The ftp client is Flash FXP and the transfer mode is set to auto. My computer is windows but the hosting is linux.

Has anyone had this problem before? If so, what causes it?

The file is fine on my local machine, but as soon as it transfers complete, if i view the file it shows all the code on one line, thus not executing the code properly on front end.

Any help on this would be greatly appreciated.

Thanks in advance

Link to comment
Share on other sites

5 answers to this question

Recommended Posts

  • 0

I have been using Filezilla to transfer php files and haven't had any issues. It may have something to do with your editor. The line return character that indicates the end of line in windows is not the same as in linux. The problem you are experiencing could also be a result of your editor not being able to handle the difference. You could try a different editor and different ftp client to see where the issue is. My guess would be the editor but I could be wrong.

Link to comment
Share on other sites

  • 0

thanks for the response, i've tried another ftp client and its fine, transfers no problem, stays the same on the other end etc

so it is definitely the particular ftp client, problem is that i want to still use flash fxp as i'm used to the layout and functionality of it, so trying to figure out what is causing it is priority rather than avoiding it to be honest

Link to comment
Share on other sites

  • 0

update: still no joy, flicked through all the settings to see what might be causing the problem, i.e. something happening on file transfer or when the server refreshes after upload, still researching, any other comments or help appreciated... thanks :)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.