commandlinefu.com is the place to record those command-line gems that you return to again and again.
You can sign-in using OpenID credentials, or register a traditional username and password.
Subscribe to the feed for:
Most people know that you can run a PHP script from the command line like so:
But sometimes I just want to run a quick bit of code, the PHP Command Line Interface allows me to do so with the -r option.
Requires package php5-cli
There is 1 alternative - vote for the best!
If you can do better, submit your command here.
You must be signed in to comment.