Hi
I wanted to find out is there a way to remove all newlines/extra spaces.
My whole script files .php, .xml etc, have some how got newlines below each code line.
example
$config['blacklisted_ips'] = array();
$config['whitelisted_ips'] = array('111','222','333');
$config['blacklisted_countries'] = array();
There are too many files to remove them manually.
Could this have happened by uploading the files in the wrong way?
Thanks
WeBuilder Remove Newlines
Moderator: kfury77
Forum rules
Please try to follow these guidelines. This will help to receive faster and more accurate response.
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;
Re: WeBuilder Remove Newlines
Some misconfigured FTP servers do this. Try removing "PHP" from "FTP Options" -> "Transfer Mode" list if you have it there, or adding, if you don't.
Blumentals Software Programmer
Re: WeBuilder Remove Newlines
Where would i find this on the server.
In filezilla Edit - Settings - Transfers - File Types - Automatic file type classification - Treat the following as ASCII.
I removed php from that list.
Think it could be my pc. I open some files last night they were all formatted ok, today i opened the same php files and they now have empty lines between each line of code.
Its a pain to grow through each file removing all the empty line.
In filezilla Edit - Settings - Transfers - File Types - Automatic file type classification - Treat the following as ASCII.
I removed php from that list.
Think it could be my pc. I open some files last night they were all formatted ok, today i opened the same php files and they now have empty lines between each line of code.
Its a pain to grow through each file removing all the empty line.
Re: WeBuilder Remove Newlines
In WeBuilder FTP settings can be found in FTP pane (menu View -> File Explorer -> FTP), look for the button in the toolbar.
Blumentals Software Programmer