Cpanel – FileZilla FTP – All code converted in single line

Author posted by Jitendra on Posted on under category Categories Web Technology and tagged as Tags , , with Leave a comment on Cpanel – FileZilla FTP – All code converted in single line

While transferring the php, html or javascript file using filezilla ftp client to the cpanel – all the codes converted into single line

Problem detail :

I used the FileZilla FTP client to transfer the source code in cpanel environment. I normally use the Notepad++ editor to edit the code. While transferring the code from local to cpanel using filezilla – sourcecode of PHP, HTML, Java Script … all the code converted to the single line.

Lets discuss in detail , if my code is like :

<?php
 if(isset($_POST['YourName']))
 {
   //Check Name have special character or not
   $isValid = true;
 }
?>

then it gets converted to

<?php if(isset($_POST['YourName'])) {   //Check Name have special character or not $isValid = true; } ?>

Continue reading “Cpanel – FileZilla FTP – All code converted in single line”