running php script from linino terminal?

opkg update
opkg install nano
opkg install php5-cli
php-cli -v
PHP 5.4.17 (cli) (built: Sep 12 2013 18:54:21)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
nano hello.php
#!/usr/bin/php-cli
<?php echo "hello world!\n"; ?>
chmod 755 hello.php
./hello.php
hello world!

sample to connect with mysql

http://forum.arduino.cc/index.php?topic=206746.msg1524891#msg1524891