How to run my php file from mac terminal
In order to change the directory, you must type cd and then the file path name
If you find the file in Finder, and hold the file, and drag it to the mac terminal window, it will place the entire path file....so just type cd, then drag file to get path
- DO NOT FORGET TO REMOVE THE FILE NAME ON THE END OF THE PATH
and that will take you to the directory of the file..
after that, just type php test.php
, and that should work
Hope this helps!