Results 1 to 3 of 3
  1. #1

    Default strange ftp upload behaviour

    I'm editing a file that already existed on my site and was working

    I upload the new version - and the page doesn't display.

    When I go and have a look at it using the cPanel File Manager - all the code is now on a single line.

    This if course means my single line comments - //comments - now comment out most of the script.

    If I now change the comments to /*comments*/ - it al works

    But - It wasn't like that the last time I uploaded the file. It was on multiple lines and worked fine.

    Why is this happening? Is it my editor (Evrsoft Fisrt Page 2006) - or is something happening when it is uploaded.

    It dirves me crazy becuase it does this intermittantly on different files at different times, when I have made no other changes.

    Any thoughts?

    Richard

  2. #2
    Join Date
    Jun 2009
    Posts
    25

    Default

    It sounds like an issue with the editor. Perhaps you should try a different editor such as Notepad++ and see if the problem still occurs, if it does, then it's probably not First Page 2006.

  3. #3
    Join Date
    Jun 2009
    Posts
    25

    Default

    Always use a plain text editor when editing any php or html files. These fancy editors add all sorts of "rubbish" to your code, which makes editing a nightmare and as you have experienced can mess up the execution of files.

    Also make sure that your FTP program is set to either upload php and html files as ASCII files, or choose Auto.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •