[請益] 執行exec沒有錯誤訊息,但執行失敗
請教版上的前輩
系統: win2003 + iis6 + php-5.2.4 + MySQL5
我想利用exec去執行一隻小程式(*.exe),
$cmd="ptInRgn $shpfile $e_10 $n_10";
^^^^^^^ ^^^^^ ^^^^^ ^^^^^
程式名稱 參數1 參數2 參數3
$getRgnID=exec(escapeshellcmd($cmd));
已經開給cmd.exe IIS guest 讀取及執行權限
也確認php.ini裡safe_mode是off的 也沒有設定disable_funcions
但是卻無法成功執行得到結果,在error log也沒有任何訊息
(error_reporting設定為 E_ALL)
請問是不是win2003有什麼地方會擋住php去呼叫cmd.exe來執行程式
應該還要做什麼才能用exec來執行電腦裡的.exe呢?
應該怎麼設定error_reporting才能得到執行失敗的訊息呢??
謝謝
--
最近的新嗜好~部落格研究:http://Qiu0.blogspot.com/
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 140.112.64.235
→
03/12 11:04, , 1F
03/12 11:04, 1F
→
03/12 11:38, , 2F
03/12 11:38, 2F
→
03/12 11:48, , 3F
03/12 11:48, 3F
推
03/12 12:18, , 4F
03/12 12:18, 4F
→
03/12 12:18, , 5F
03/12 12:18, 5F
→
03/12 15:38, , 6F
03/12 15:38, 6F
→
03/12 15:39, , 7F
03/12 15:39, 7F