php through the terminal/shell

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
GalenScorer
Forum Newbie
Posts: 1
Joined: Thu Feb 20, 2003 10:46 am

php through the terminal/shell

Post 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
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post 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
Post Reply