Go4Expert

Go4Expert (http://www.go4expert.com/)
-   PHP (http://www.go4expert.com/forums/php/)
-   -   Executing a external file from PHP (http://www.go4expert.com/forums/executing-external-file-php-t16313/)

Bhullarz 24Feb2009 10:40

Executing a external file from PHP
 
Hi ! I am trying to execute an external file i.e abc.exe from php but it is not working.
I have used the following code:
Code:

<?php
        exec("executable1.exe -o arg1 arg2");
        shell_exec("executable1.exe -o arg1 arg2");
        system("executable1.exe -o arg1 arg2");
?>

None of the commands seem to be working. What's wrong in the code?

Bhullarz 26Feb2009 22:09

Re: Executing a external file from PHP
 
No one replied yet. But I have solved this problem. so no worries

shabbir 27Feb2009 09:18

Re: Executing a external file from PHP
 
Why dont you share it here so if anyone searching can find it easily

Bhullarz 1Mar2009 05:51

Re: Executing a external file from PHP
 
It may sound funny to all. I developed a software in Windows and transferred to server which is Linux Server. This was the reason EXE files were not working there.


All times are GMT +5.5. The time now is 17:55.