install php-cli you will have the console similar to python for php programming.
- php -a: console environment
- php -r <command>: run single php command line like what 'python -c' does. ( must end with ';')
- php -f <php file>: just for pure php codes, if there are some html codes, it still works, but will pup up a lot of html tag.
No comments:
Post a Comment