Berkeley CSUA MOTD:Entry 34507
Berkeley CSUA MOTD
 
WIKI | FAQ | Tech FAQ
http://csua.com/feed/
2024/11/23 [General] UID:1000 Activity:popular
11/23   

2004/11/1 [Computer/SW/Languages/Web] UID:34507 Activity:nil
11/1    A coworker would like to run PHP w/o a web server as a shell
        script. Is this possible? Suggestions?
        \_ There's a php shell, and for standalone client-side apps there's
           PHP-GTK, though I'm confused as to why not just use Perl or
           something.
           \_ There's some PHP tools he would like to use.
              \_ Fair enough.  I'm kinda partial to PHP myself.
        \_ Yeah, it's possible.  Just make sure you install the commandline
           tool (bin/php) when you build it, then you just do something like:
           #!/usr/local/bin/php
           <?
             // your script goes here, use stuff like $_SERVER['ARGV']
           ?>
           --dbushong