{"id":2386,"date":"2011-08-12T21:47:24","date_gmt":"2011-08-12T16:17:24","guid":{"rendered":"http:\/\/JitendraZaa.com\/blog\/?p=2386"},"modified":"2011-08-12T21:47:24","modified_gmt":"2011-08-12T16:17:24","slug":"cpanel-filezilla-ftp-all-code-converted-in-single-line","status":"publish","type":"post","link":"https:\/\/www.jitendrazaa.com\/blog\/webtech\/cpanel-filezilla-ftp-all-code-converted-in-single-line\/","title":{"rendered":"Cpanel &#8211; FileZilla FTP &#8211; All code converted in single line"},"content":{"rendered":"<p>Problem detail :<\/p>\n<p>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\u00a0transferring\u00a0the code from local to cpanel using filezilla &#8211; sourcecode of PHP, HTML, Java Script &#8230; all the code converted to the single line.<\/p>\n<p>Lets discuss in detail ,\u00a0if my code is like :<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php\n if(isset($_POST&#x5B;'YourName']))\n {\n   \/\/Check Name have special character or not\n   $isValid = true;\n }\n?&gt;\n<\/pre>\n<p>then it gets converted to<\/p>\n<pre class=\"brush: php; title: ; notranslate\" title=\"\">\n&lt;?php if(isset($_POST&#x5B;'YourName'])) {   \/\/Check Name have special character or not $isValid = true; } ?&gt;\n<\/pre>\n<p><!--more--><br \/>\nAs you can see now, what problem arises ? As i am using the single line comment &#8220;\/\/&#8221; all the code after that becomes comment and there is syntax as well as logical error.<br \/>\nActual problem was with <strong>Filezilla FTP client default transfer mode<\/strong>, by default it is &#8220;Auto&#8221;. Follow below step to convert it into &#8220;<strong>binary<\/strong>&#8220;.<br \/>\nGo to the &#8220;<strong>Edit | Settings&#8230;<\/strong> &#8221;<\/p>\n<figure id=\"attachment_2388\" aria-describedby=\"caption-attachment-2388\" style=\"width: 251px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/08\/FileZilla-Settings.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2388\" title=\"FileZilla Settings\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/08\/FileZilla-Settings.png?resize=251%2C113&#038;ssl=1\" alt=\"FileZilla Settings\" width=\"251\" height=\"113\" \/><\/a><figcaption id=\"caption-attachment-2388\" class=\"wp-caption-text\">FileZilla Settings<\/figcaption><\/figure>\n<p>In new window, go to &#8220;<strong>transfers | File Types<\/strong> &#8221; and in &#8220;Default transfer type&#8221;, select &#8220;<strong>Binary<\/strong>&#8220;.<\/p>\n<figure id=\"attachment_2389\" aria-describedby=\"caption-attachment-2389\" style=\"width: 421px\" class=\"wp-caption aligncenter\"><a href=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/08\/FileZilla-Default-Transfer-type.png?ssl=1\"><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-2389 \" title=\"FileZilla Default Transfer type\" src=\"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2011\/08\/FileZilla-Default-Transfer-type.png?resize=421%2C272&#038;ssl=1\" alt=\"FileZilla Default Transfer type\" width=\"421\" height=\"272\" \/><\/a><figcaption id=\"caption-attachment-2389\" class=\"wp-caption-text\">FileZilla Default Transfer type<\/figcaption><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>While transferring the php, html or javascript file using filezilla ftp client to the cpanel &#8211; all the codes converted into single line<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"advanced_seo_description":"","jetpack_seo_html_title":"","jetpack_seo_noindex":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"jz_research_post":"","_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[19],"tags":[65,105,155],"class_list":["post-2386","post","type-post","status-publish","format-standard","hentry","category-webtech","tag-cpanel","tag-ftp","tag-php"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":1848,"url":"https:\/\/www.jitendrazaa.com\/blog\/webtech\/cpanel-php-500-internal-server-error\/","url_meta":{"origin":2386,"position":0},"title":"CPanel &#8211; PHP &#8211; 500 internal server error","author":"Jitendra","date":"March 28, 2011","format":false,"excerpt":"Error Resolved - CPanel - PHP - 500 internal server error","rel":"","context":"In &quot;Web Technology&quot;","block_context":{"text":"Web Technology","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/webtech\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":291,"url":"https:\/\/www.jitendrazaa.com\/blog\/others\/linux\/create-cron-job-to-run-php-script-in-cpanel\/","url_meta":{"origin":2386,"position":1},"title":"Create Cron job to run PHP Script in Cpanel","author":"Jitendra","date":"June 25, 2010","format":false,"excerpt":"Hi All, Today i just want to share that how to create \u00a0a cron job in Cpanel to run the PHP script. I hope everyone knows that what is Cron job : it is the task schedule in Linux which will run on predefined time interval. its same concept like\u2026","rel":"","context":"In &quot;Linux&quot;","block_context":{"text":"Linux","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/others\/linux\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2550,"url":"https:\/\/www.jitendrazaa.com\/blog\/others\/tips\/sort-comment-in-reverse-order-wordpress\/","url_meta":{"origin":2386,"position":2},"title":"Sort comment in reverse order &#8211; WordPress","author":"Jitendra","date":"December 9, 2011","format":false,"excerpt":"PHP code to sort the comment in WordPress blog in reverse order","rel":"","context":"In &quot;Tech Tips&quot;","block_context":{"text":"Tech Tips","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/others\/tips\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":104,"url":"https:\/\/www.jitendrazaa.com\/blog\/others\/tips\/display-author-name-in-wordpress\/","url_meta":{"origin":2386,"position":3},"title":"Display author name in wordpress","author":"Jitendra","date":"May 11, 2010","format":false,"excerpt":"Look in the default theme's index.php file for the proper template tag: [sourcecode language=\"php\"] <code><?php the_author() ?><\/code> [\/sourcecode] and a good place to put it. Display Author's 'Public' Name Displays the value in the user's\u00a0Display name publicly as\u00a0field. [sourcecode language=\"php\"] <p>This post was written by <?php the_author();\u00a0?><\/p> [\/sourcecode] Get Author\u2026","rel":"","context":"In &quot;Tech Tips&quot;","block_context":{"text":"Tech Tips","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/others\/tips\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":39,"url":"https:\/\/www.jitendrazaa.com\/blog\/others\/tips\/how-to-change-the-meta-tag-link-in-wordpress\/","url_meta":{"origin":2386,"position":4},"title":"How to change the Meta Tag link in WordPress","author":"Jitendra","date":"May 6, 2010","format":false,"excerpt":"How to change the Meta Tag link in Wordpress","rel":"","context":"In &quot;Tech Tips&quot;","block_context":{"text":"Tech Tips","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/others\/tips\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":2903,"url":"https:\/\/www.jitendrazaa.com\/blog\/salesforce\/salesforce-toolkit-for-php\/","url_meta":{"origin":2386,"position":5},"title":"Salesforce Toolkit for PHP","author":"Jitendra","date":"June 7, 2012","format":false,"excerpt":"Example of using PHP toolkit in Salesforce with Sample code","rel":"","context":"In &quot;Force.com&quot;","block_context":{"text":"Force.com","link":"https:\/\/www.jitendrazaa.com\/blog\/category\/salesforce\/force-com\/"},"img":{"alt_text":"force.com toolkit for PHP toolkit","src":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/jitendrazaa.com\/blog\/wp-content\/uploads\/2012\/06\/force.com-toolkit-for-PHP-toolkit.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]}],"jetpack_likes_enabled":true,"_links":{"self":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2386","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/comments?post=2386"}],"version-history":[{"count":0,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/posts\/2386\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/media?parent=2386"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/categories?post=2386"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.jitendrazaa.com\/blog\/wp-json\/wp\/v2\/tags?post=2386"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}