SOLVED File Manager Extract causing PHP files to get double lines

AndyX

Well-Known Member
Sep 25, 2015
72
11
58
Los Altos, CA
cPanel Access Level
Website Owner
When I use the Extract function in File Manager, PHP files are being extracted with double lines.

Example:

pic001.jpg

The file should look like this:

pic002.jpg

The source file is a ZIP file I download from xenforo.com, it the latest version of their forum software. I upload the ZIP using Dreamweaver and then I use File Manager and Extract. I have tested on two different web hosts so I suspect this will be an issue with cPanel.

Thank you.
 

AndyX

Well-Known Member
Sep 25, 2015
72
11
58
Los Altos, CA
cPanel Access Level
Website Owner
To be clear, you uploaded the zip, extract it, then selected download > Open with text edit, is that right?
Thank you for checking.

Here are the steps I took:

1) cPanel -> File manager -> Select ZIP file -> Extract
2) Dreamweaver (or use some other FTP program) -> download one of the extracted PHP files.
3) Open PHP file on my iMac using TextEdit.
 

AndyX

Well-Known Member
Sep 25, 2015
72
11
58
Los Altos, CA
cPanel Access Level
Website Owner
The etc/ folder under the username was somehow moved to public_html/ so once that was moved back I could no longer FTP, so once I changed to SFTP in Dreamweaver I was able to FTP and also the issue with extract was resolved.
 
  • Like
Reactions: Infopro