PHP stream_filter_prepend cannot find iconv filters


Posted in Code, PHP on Feb 01, 2016

How to fix the "PHP stream_filter_prepend cannot find iconv filters" message in PHP

Laravel and the compiled.php file


Posted in Code, Laravel, PHP on Dec 18, 2014

To be more efficient, Laravel can optimize its files, by putting certain classes in `bootstrap/compiled.php` to allow the framework to load all of them in one go. The standard composer.json includes a call to `php artisan clear-compiled` as a post-update and post-install command, which has the effect of removing this file. Unfortunately if the updated files are incompatible with the old ones that were just replaced, this can lead to the following error: