The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Uploading a PHP file, cPanel adds line of gobbly guk to top of file

Discussion in 'General Discussion' started by railx, Sep 10, 2004.

  1. railx

    railx Registered

    Joined:
    Sep 3, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Anyone ever heard of this happening?

    When I upload a file with a ".php" extension or with no extension, a line of text including the file name and a bunch of random characters is added to the top of the file. This prints to the screen when you view the file in a browser and prevents some php functions from working.

    When I use ftp this does not happen.

    When I upload an ".html" file this does not happen. In fact, ".html" files are recognized as ASCII while the ".php" files are being identified as some type of Macintosh binary file.

    I have not found any reference to this on the web and the support guy for my host server doesn't understand or believe that this is happening.

    Am I the only one?
     
  2. SarcNBit

    SarcNBit Well-Known Member

    Joined:
    Oct 14, 2003
    Messages:
    1,010
    Likes Received:
    3
    Trophy Points:
    38
    That sounds like an ftp client problem not a cpanel issue.

    Try turing off auto format detection and force ascii uploads from your client.
     
  3. railx

    railx Registered

    Joined:
    Sep 3, 2004
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    Is this something I can do from cPanel? I've searched around and can't find anything about auto detection or forcing ASCII uploads.
     
  4. cguimont

    cguimont Well-Known Member

    Joined:
    Jul 13, 2004
    Messages:
    100
    Likes Received:
    0
    Trophy Points:
    16
    it should be in your ftp client( ex: wsftp, cuteftp...)
     
  5. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    If I understand correctly, railx is uploading in cpanel, not with an ftp program. Cpanel doesn't have the option of choosing file type. I'll test mine and see what happens.
     
  6. PWSowner

    PWSowner Well-Known Member

    Joined:
    Nov 10, 2001
    Messages:
    2,948
    Likes Received:
    3
    Trophy Points:
    38
    Location:
    ON, Canada
    Cpanel file manager uploaded php just fine. Your provider is probably behind on cpanel updates.

    Anyway, cpanel works fine so your provider will have to find the problem.
     
Loading...

Share This Page