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”

CPanel – PHP – 500 internal server error

Author posted by Jitendra on Posted on under category Categories Web Technology and tagged as Tags , , with Leave a comment on CPanel – PHP – 500 internal server error

Error Resolved – CPanel – PHP – 500 internal server error

Hello Reader,
Before one day everything on my blog was working great however suddenly i got error “500 internal server error” for my wordpress blog.
After 1-2 hour digging i got to know that my hosting provider has enabled “SU-PHP“.

If The server is having SU-PHP enabled :
You can create a custom php.ini file to customize your php configurations. If you are getting 500 internal server error, please create a file php.ini in your public_html folder and enter the following line:

“suhosin.Simulation On”

If you are getting same error under wp-admin login page then copy your php.ini file under wp-admin/ directory and check once again.