Execute shell command with PHP

06/08/2013

$cmd = escapeshellcmd('mysql -u username -p -e "create database dbname"');
$test = shell_exec($cmd);