mirror of
https://github.com/Erreur32/cheat.git
synced 2024-12-22 21:52:12 +01:00
Added a PHP cheatsheet.
This commit is contained in:
parent
b6a17fac42
commit
8ebd96e33b
1 changed files with 17 additions and 0 deletions
17
cheatsheets/php
Normal file
17
cheatsheets/php
Normal file
|
@ -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
|
Loading…
Reference in a new issue