Problem with Exec()
| From: | Jon Haworth | Date: | Fri, 12 Jan 2001 16:15:40 +0000 |
| Subject: | Problem with Exec() | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-34250@lists.php.net to get a copy of this message | ||
Hello list,
I'm having a problem with Exec and Sendmail, on PHP-4 running under Apache
1.3.14 on Windows NT.
When I go to a DOS prompt and enter
d:\sendmail\sendmail -t -messagefile=d:\sendmail\msg.txt
it works fine. When I have any of the lines
exec ("d:\sendmail\sendmail.exe -t -messagefile=d:\sendmail\msg.txt");
exec ("d:\\sendmail\\sendmail.exe -t -messagefile=d:\\sendmail\\msg.txt");
$foo = exec ("d:\sendmail\sendmail.exe -t
-messagefile=d:\sendmail\msg.txt");
$foo = exec ("d:\\sendmail\\sendmail.exe -t
-messagefile=d:\\sendmail\\msg.txt");
all that happens is my PHP script times out. If I remove this line,
everything works fine. I'm sure I'm missing something simple but I'm *very*
tired. Any ideas?
Cheers
Jon