Re: Executing external program ?
| From: | Richard Lynch | Date: | Mon, 18 Dec 2000 23:28:54 +0000 |
| Subject: | Re: Executing external program ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-30963@lists.php.net to get a copy of this message | ||
> $bindir="c:\mysql\bin\";
That's pretty broken -- \ has special meaning... I'm guessing that PHP
might be doing the right thing, since you didn't coincidentally hit upon any
of the wrong characters except \", though I'm not at all sure how that slips
by...
This line alone should be giving you an error message...
Change all the \ to / in pathnames and save yourself some headaches.
>
> passthru( $bindir."mysqldump --quick shop > bkup.txt " ) or Die('Couldnt
Query '.mysql_error());
> echo ("Program ran successfully");
This probably doesn't output anything -- You've dumped all the output to
bkup.txt
Is bkup.txt being filled with the correct data? What path are you expecting
bkup.txt to be in?...
You may need it to be a world-writable directory -- or at least one writable
by the user that IIS runs as, which under NT is that "Iusr_machinename"
user, I think...