Coding

Reslove OS X composer install returned with an error - Mcrypt PHP extension required.

When I run composer install in laravel, I got this error-message Mcrypt PHP extension required. Script php artisan clear-compiled handling the post-install-cmd event returned with an error [RuntimeException] Error Output: install [--prefer-source] [--prefer-dist] [--dry-run] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress]…

Remove the index.php in ThinkPHP

For example, your original path is http://localhost/test/index.php/index/add, and you want to it like this http://localhost/test/index/add. Configure Apache Make sure that httpd.conf configuration file loaded mod_rewrite.so module, uncommented: # LoadModule rewrite_module modules/mod_rewrite.so Modify AllowOverride None to AllowOverride All Configure ThinkPHP Make…