PHP shell_exec executing a mysql query
Posted on 2014-01-18
i have a PHP script where the following shell_exec seems to return null
echo "SIMPLE MYSQL:". shell_exec('mysql cphulkd -e "SELECT 1+1 "') ;
i've tried various ways to find out what it's returning but it seems to be blank/null.
the plain mysql shell command
mysql cphulkd -e "SELECT 1+1 "
works fine when executed directly from linux shell.
any thoughts on debugging PHP shell_exec ?