- Open terminal
- cd to folder
- Start php server - php -S 127.0.0.1:8000
- 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
References:
https://stackoverflow.com/questions/19951457/double-click-and-run-the-php-script-on-mac/19951643
No comments:
Post a Comment