BomCleaner

Who am I? Check my blog...

This is a single php file designed for removing the UTF 8 byte mark order from files on a hosted web site. Tool searches the directories for file with BOM and tries to remove it. Checking starts from the script's current location, and moves downward, but not upwards. So simply put it to the top folder of your site and run.

Script has the ability to detect if it is called from web or terminal and echoes related information for the medium. Color codes are used to define folders, files with bom, are clean, cleaned files and errors. If you want this to work as good as possible, give the script read and write permissions.

Both web and terminal versions let you select file types for checking. Web version has php and html files defined as defaults but terminal has none, so you must write yes for each asked extension. It is possible to define custom extensions if you need to.

##Here are some screenshots. ####When you are running from the linux terminal:

####Startup screen when called from web:

####After searching for files:

This software is licensed with open source MIT license. The program is distributed in the hope that it will be useful, but without any warranty. The entire risk as to the quality and performance of the program is with you. In no event the author will be liable to you for damages, including any general, special, incidental or consequential damages arising out of the use or inability to use the program (including but not limited to loss of data or data being rendered inaccurate or losses sustained by you or third parties or a failure of the program to operate with any other programs), even if the author has been advised of the possibility of such damages.

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。
3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考学习用!
4、如文档内容存在违规,或者侵犯商业秘密、侵犯著作权等,请点击“违规举报”。