Rules with php files?

by 9 replies
11
When uploading php files with ftp, are there certain guidelines to follow or pitfalls to avoid? For the past few days I've been working to upload php files to my server, but for some reason I end up with errors. When someone helps me out and ftps from their end, it seems to work just fine.

I've been working with Filezilla and Cute FTP. What could I be doing wrong? Are my settings off? Should I be changing certain permissions? Anyone have a clue? I'm more than interested to know. Thanks.

Mike
#programming #files #php #rules
  • If you can ftp a regular htm file and have it work, you should be able to ftp a php one. Both are simply text files.

    What are the errors that you are getting?

    Martin
    • [1] reply
    • are you uploading it in ASCII or binary? Make sure to upload it in binary mode.

      In FileZilla, go to Transfer >> Transfer Type >> Select Binary.

      upload your file and try again.

      Make sure to put it back to auto afterwards
      • [1] reply
  • yes php is supposed to be in ACCII, in fact most files are supposed to be in ACCII
    uploadin in binary could break the file, and we do not want that happening
  • [DELETED]

Next Topics on Trending Feed

  • 11

    When uploading php files with ftp, are there certain guidelines to follow or pitfalls to avoid? For the past few days I've been working to upload php files to my server, but for some reason I end up with errors. When someone helps me out and ftps from their end, it seems to work just fine. I've been working with Filezilla and Cute FTP. What could I be doing wrong? Are my settings off? Should I be changing certain permissions? Anyone have a clue? I'm more than interested to know. Thanks.