Edit
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
php -S 127.0.0.1:8000
http://localhost:8000/file-name.php