09/10/2018, 23:59
execute file .exe in PHP
I wanna run command to execute file .exe by using PHP. Anyone can help me do it ? I did try to use system(), exec() and shell_exec() but it didn't work.
Do I have to config php.ini or something to use those functions?
Thanks.
Do I have to config php.ini or something to use those functions?
Thanks.
Bài liên quan
Windows 2003, Apache 2 PHP 5
nếu dùng thì dùng như thế nào hả bạn ?
hoac la
exec ('"C:\Program Files\Internet Download Manager\IDMan.exe" /d "http://gal9x.net/test.zip"');
thu ca 2 deu khong duoc ?
http://sv1.galanime.com/phpinfo.php
Đây là 1 script mẫu, nó sẽ xuất các lỗi khi thực thi ra
<?php
exec ('cmd "abc.exe" 2>&1', $output, $return);
echo "output ...";
var_dump($output);
echo "\nreturn ";
var_dump($return);