Starting a web server and other PHP tricks

Start PHP webserver (in current directory):

php -S localhost:8080  # starts http server on port 8080

Start PHP prompt (with illustrating example):

php -a
php >  echo base64_decode('QWxhZGRpbjpvcGVuIHNlc2FtZQ==');
Aladdin:open sesame

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.