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 Reply