note 55244 rejected from function.exec by nlopess
| From: | nlopess@php.net | Date: | Thu, 28 Jul 2005 12:46:05 +0000 |
| Subject: | note 55244 rejected from function.exec by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-92635@lists.php.net to get a copy of this message | ||
Note Submitter: ioana_cec20 at yahoo dot com
----
Hello, I try to use
$command = ("mysql -u".$user." -p".$pass." dbname <
file1/file2/file.sql");
exec($command, $output, $return)
if ($return)
{
echo $return."<br>";
print 'error executing command';
}
else
{
echo $return."<br>";
print 'done';
}
and ithe output is error executing command
I need an advice
thanks