[thelist] Simple CGI Languages Command line
David Dorward
evolt at david.us-lot.org
Tue Sep 30 08:09:25 CDT 2003
On Tue, Sep 30, 2003 at 01:01:55 +0000, Ken Moore wrote:
> I agree with PHP. Does anyone know of a PHP command-line method. I know
> that you can pipe into MySql (mysql -u user --password=pw < myscript.sql)
> but I am looking for a more general method.
PHP scripts can be excuted from the command line just like most
scripting languages...
~/> php test.php
Hello, world
~/> cat test.php
#!/usr/bin/php
<?php
print "Hello, world\n\n";
?>
~/>
--
David Dorward http://dorward.me.uk/
More information about the thelist
mailing list