Every so often, things work in my local PHP development environment, while in my test environment on my server, things do not. It’s a nightmare to debug this. If I had a console like Rails provides, debugging would be much much simpler.
Is there anything like the Rails console but for PHP?
I should mention that I am using a home-brewn PHP application.
PHP has a basic interactive shell available by running
php -a. It doesn’t have the bells and whistles of a framework-based console though.More info can be found in the docs: http://docs.php.net/commandline.interactive