[thelist] Simple CGI Languages Command line

Jay Blanchard jay.blanchard at niicommunications.com
Tue Sep 30 08:14:03 CDT 2003


[snip]
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.
[/snip]

Find out where PHP resides
(from the command line type) which php (hit enter)
(returns something like) /usr/local/bin/php

Call a script from the command line
(from the command line type)/usr/local/bin/php /path/to/the/script.php
(hit enter)
(returns something like) stuff from your script

<tip type"mailing lists">
Are you working with a particular technology where you may need
questions answered frequently? If so, locate the mailing list for that
group (if you go to php.net you can search for mail list) and join it.
You will learn a tremendous amount by just lurking, not to mention the
education you will get.
</tip>


More information about the thelist mailing list