Rapid PHP and HTML Files

Post your questions and problem reports here

Moderator: kfury77

Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
  • Check the Support section of the corresponding product first. Chances are you will find your answer there;
  • Do not create new topics for already reported problems. Add your comments to the existing topics instead;
  • Create separate topic for each problem request. Do NOT post a number of non-related problem reports in a single topic;
  • Give your topic a meaningful title. Titles such as "A question," "Bug report" and "Help!" provide others no clue what your message is about;
  • Include the version number of the software you are using;
  • This is not an official customer support helpdesk. If you need a prompt and official response, please contact our support team directly instead. It may take a while until you receive a reply in the forum;
Post Reply
gohighvoltage
Posts: 1
Joined: Mon Mar 03, 2008 5:17 pm

Rapid PHP and HTML Files

Post by gohighvoltage »

HTML files having line spaces added when I open them with RapidPHP

If I use godaddy's file manager and download direct, the file is fine.

If I use any FTP software, and it doesn't matter which one, download an HTML file and open it with an rapidphp editor, there is line spaces between every code line.

But if I open the same file in coffeecup HTML editor or notepad, it is fine. Problem only happens in rapidPHP.

Why would this happen and how can I fix it?
User avatar
Karlis
Site Admin
Posts: 3605
Joined: Mon Jul 15, 2002 5:24 pm
Location: Riga, Latvia, Europe
Contact:

Post by Karlis »

This happens if you upload files using Binary mode and download using FTP ASCII mode.

Usually FTP clients upload all files in binary mode by default (except txt and some other popular formats). For example, your normal FTP client could be uploading PHP files in binary mode, if it is not set up to specifically treat PHP as ASCII. If you download with the same client with the same wrong Binary mode, there will most likely be no problems.

Rapid PHP by default treats PHP as ASCII (which is correct), however if you open incorrectly uploaded file with Rapid PHP, empty lines could pop in.

Solution: Make sure all your files are uploaded in ASCII mode. Otherwise download them in Binary mode and re-upload in ASCII mode and form that moment on only use ASCII.
Karlis Blumentals
Blumentals Software
www.blumentals.net
Post Reply