Monday, March 8, 2021

How to run php file on Mac quickly


  1. Open terminal
  2. cd to folder
  3. Start php server - php -S 127.0.0.1:8000
  4. Open browser and enter - http://localhost:8000/file-name.php


References:

https://stackoverflow.com/questions/19951457/double-click-and-run-the-php-script-on-mac/19951643

No comments:

Post a Comment