How to run my php file from mac terminal -
sorry if novice question - novice - but, have no clue how run php file terminal.
i type in mac terminal this: php test.php (where test.php file i'm trying run) then, this: not open input file: test.php
i think i'm having problem because didn't change directory (not sure how either).
in order change directory, must type cd , file path name
if find file in finder, , hold file, , drag mac terminal window, place entire path file....so type cd, drag file path
- do not forget remove file name on end of path
and take directory of file..
after that, type php test.php
, , should work
hope helps!
Comments
Post a Comment