开发者

PHP exec function not working

I am trying to execute a command from php script using php exe function. The script calls .exe file located in program files whereas my xampp is intalled in E: I m trying the following command C:\\Program Files\\GPStill\\pstill.exe its not working.But if i manually open cmd prompt and stand in c:\prgram files folder than run pstill.exe it works开发者_运维问答...

Any ideas ???


you need to escape the folders for example

<?php
$command 'C:\"Program Files"\"Internet Explorer"\iexplore.exe';
exec($command);
?>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜