This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?//noshort | |
/* This is a little script built for php on linux to short your PHP Scripts, | |
* it is not, it will never and it is not trying to be perfect, | |
* but it might still help you with your code golfes! | |
*******************************************************/ | |
if(empty($argv[1])) | |
{ | |
echo "Syntax: php shorten.php <file>\n"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// This changes the error handler to a more helping one. | |
// You must/can prepend this script - Help: http://stackoverflow.com/a/35298767/4796321 | |
function h_error($severity, $message, $file, $line) | |
{ | |
if (!(error_reporting() & $severity)) | |
{ | |
return; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Your configuration starts here. | |
// Testing. 'true' = Don't actually edit files and only output the name changes. | |
$testing = false; | |
// Folders. 'true' = Rename folders and files. | |
$folders = true; | |
// Recursive. 'true' = Also rename files in sub-directories. |
NewerOlder