Page 1 of 1

php through the terminal/shell

Posted: Thu Feb 20, 2003 10:46 am
by GalenScorer
Just have a question of how to run php through the terminal window. Any documentation I am reading assumes that simply typing php or typing the name of a php file, it should somehow run. Although all I am getting is 'Command not found'. In further reading there was mention of PHP Binary. Is this something I have to install or activate? If it matters I am running PHP 4.3 on Mac OS X.2.4 in Apache

Thanks in advance

Posted: Thu Feb 20, 2003 1:44 pm
by volka
did you download the sources from http://www.php.net ?
If you (re-)compile php without any webserver-support you should get the commandline version, but read also:
http://www.php.net/manual/en/install.commandline.php
http://www.php.net/manual/en/install.macosx.php