cheat/cheatsheets/php

18 lines
326 B
Plaintext
Raw Normal View History

# To view the php version:
2013-08-24 00:32:36 +02:00
php -v
# To view the installed php modules:
2013-08-24 00:32:36 +02:00
php -m
# To enter an interactive shell:
2013-08-24 00:32:36 +02:00
php -a
# To view phpinfo() information:
2013-08-24 00:32:36 +02:00
php -i
# To locate the system's php.ini files:
2013-08-24 00:32:36 +02:00
php -i | grep "php.ini"
# To start a local webserver for the cwd on port 3000 (requires php >= 5.4):
2013-08-24 00:32:36 +02:00
php -S localhost:3000