Re: Re: problem with exec()
| From: | Christian Dechery | Date: | Mon, 08 Oct 2001 00:34:44 +0000 |
| Subject: | Re: Re: problem with exec() | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-9740@lists.php.net to get a copy of this message | ||
the command is mysqldump with trillions of parameters to backup a db into a file... something in the ways of:
$cmd="mysqldump -h $host --user=$user --password=\"$pass\" --opt $database > $backup_file";
I'm gettting error return 2... which (according to 'man errno') means EACCESS or 'Permission denied'. How can something be denied in Win98 since it doesn't handle permissions, users and stuff?
At 13:20 8/10/2001 +1300, CJD wrote:
Depending on the command you are trying to run, you might have to put "command /c xxxx" as calls like copy, del, dir etc are internal to command.com and need to be poped into a new shell to run. "Christian Dechery" <cdechery@easynet.com.br> wrote in message news:5.0.0.25.2.20011007184925.01d04170@pop3.norton.antivirus... I'm running PHP on a Win98 machine with apache 1.3.12 and PHP 4.0.6, and I can't seem to get exec(), system() or whatever working... somehow the shell execution of the passed command is interrupted and the output is cut... so the result is wrong.... is this a Windows prob??? _____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br -- PHP Windows Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-windows-unsubscribe@lists.php.net For additional commands, e-mail: php-windows-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net_____________________________ . Christian Dechery . . Gaita-L Owner / Web Developer . . http://www.webstyle.com.br . . http://www.tanamesa.com.br