From 8ebd96e33bb3b1881d07a233e92ee7e03a0ba6a9 Mon Sep 17 00:00:00 2001 From: Chris Lane Date: Fri, 23 Aug 2013 18:32:36 -0400 Subject: [PATCH] Added a PHP cheatsheet. --- cheatsheets/php | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 cheatsheets/php diff --git a/cheatsheets/php b/cheatsheets/php new file mode 100644 index 0000000..f8f4801 --- /dev/null +++ b/cheatsheets/php @@ -0,0 +1,17 @@ +To view the PHP version: +php -v + +To view the installed php modules: +php -m + +To enter an interactive shell: +php -a + +To view phpinfo() information: +php -i + +To locate the system's php.ini files: +php -i | grep "php.ini" + +To start a local webserver for the cwd on port 3000 (requires php >= 5.4): +php -S localhost:3000