Migrating from PHP 5.x to PHP 7.x is a hassle when you’re dealing with a large website or multiple websites on a server. So, I’ve made some improvements to an existing a shell script to recursively modify directories of PHP pages that load in 4 or 5 but will no longer run in PHP 7.
Tag: php
PHP Obfuscator
I’ve found a good obfuscation/encoder tool to hide the source code of PHP files from shell written by Prakhar Prasad.
This is a very useful tool if you want to prevent others from viewing and editing your PHP code. Continue reading PHP Obfuscator
Bulk update scripts to PHP 5.4+
I’ve written a shell script to bulk update PHP pages, replacing ereg, eregi with preg_match, ereg_match with preg_match, split with preg_split and changing the $HTTP globals to their modern versions. I haven’t seen this anywhere else, so I’d thought I should post something here.
Better visual confirmation for phpBB
I configured PHP with font support so that I can finally stop those pesky robots junking my phpBB forums. The standard VC is next to useless as it is very easy to circumvent.