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);
?>
精彩评论