I've got php working dandy with apache but I can't seem to figure out how to get it to work as a shell scripting language. I'm currently usign osx 10.2(jaguar) and any help would be super duper greatly appreciated. Thanks, dylan
Can you find anywhere the php binary? More about http://www.php.net/manual/en/features.commandline.php
An alternative is using -> wget http://www.phpbuilder.com/board/showthread.php?s=&threadid=10209807
I can't seem to find the php binary you mention and so I think I just have it compiled to run solely as an apache module. So, can I just dl the tarball and do some simple config and makes on it with os x? Thanks again.
I figured it out. For anyone else reading this, here's what you do. go here: http://www.entropy.ch/software/macosx/php/#examples and download the cgi binary somewhere linked on the bottom of the page. Then put the binary wherever you put binaries, maybe /usr/bin or somewhere similar and perhaps make a soft link to it: ln -s /usr/bin/php-cgi-xxx php. And there you have it, php should now work from the command line!