>
> Hi all.
>
> Can I use PHP as a shell script, like bash? Or this is inviable,
> impossible
> and/or out of question?
>
It is viable and works great. You must have a php binary somewhere from a
default installation of PHP. Usually, this binary is found somewhere like
/usr/local/bin/php.
Then make a file.
#!/usr/local/bin/php -q
<?
print("Hello World\n");
?>
Then chmod it so it is executable like so.
chmod 755 thefilename
It works for me. This is a very convenient way to obtain access to
databases from shell scripts.
Good luck.
John
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]