note 55244 added to function.exec
| From: | ioana_cec20 at yahoo dot com | Date: | Thu, 28 Jul 2005 12:16:45 +0000 |
| Subject: | note 55244 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-92630@lists.php.net to get a copy of this message | ||
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
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55244
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55244&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55244&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55244&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55244&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55244&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55244&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55244&report=yes
Search -- http://master.php.net/manage/user-notes.php