Skip to content

Instantly share code, notes, and snippets.

View Johann150's full-sized avatar
🔏
all my commits should be signed

Johann150

🔏
all my commits should be signed
View GitHub Profile
@Johann150
Johann150 / remove-bom.php
Last active January 27, 2018 21:20 — forked from Xhamps/remove-bom.php
Remove Bom
<?php
// root directory in which to start searching
$HOME=$_SERVER["DOCUMENT_ROOT"];
// use alternatively:
// $HOME=dirname(__FILE__);
// $HOME=dirname(__FILE__);
header("Content-Type: text/plain");
echo "BOM removed from files:\n";
RecursiveFolder($HOME);