[PHP-users 9008] Windows版exec関数について

php-users@php.gr.jp php-users@php.gr.jp
Mon, 29 Jul 2002 16:03:20 +0900


win2k Apache + php4.0.9 + MySQL にて
phpを勉強している初心者ですが過去(2842/2847)を見ても
肝心の具体的な解決法が無い様に思いまして解決できません。
私も同様にexecを実行するとphpがhungしてしまいます。
やりたいことは外部プログラムにてメール送信を実行したいのです。
dosプロンプトで下記内容は問題なく送信できます
(E:\www\test>sendmail.exe -tjp < textout.txt)
挑戦したことは下記の方法です。どなたか教えてください。
1.exec("sendmail.exe -tjp < textout.txt");
2.exec("sendmail.exe -tjp < textout.txt > c:\temp &");
3.exec("e:/www/test/sendmail.exe -tjp < e:/www/test/textout.txt");
4.exec("e:/www/test/sendmail.exe -tjp < e:/www/test/textout.txt > c:\temp &");
5.exec("e:\\www\\test\\sendmail.exe -tjp < e:\\www\\test\\textout.txt > c:\\temp &");