Anon
05-03-2001, 03:47 AM
How can I execute a file "name.exe" via Windows NT using PHP? This file admits one parameter (it can be "e" or "s") and returns HTML code. The format is (in DOS console execution): "name /e" (e.g.). I use the "passthru" PHP function, but it does not do what it is supposed to do with my program.
However, if I use it to execute a DOS command, it works:echo passthru("dir") prints all the files and dates of the directory!
I have tried to type:
echo passthru("name.exe /e")
and also:
echo passthru("cmd /c name.exe /e")
but the result is the same.
How could I do it in Linux?
Thank you very much for reading this.
However, if I use it to execute a DOS command, it works:echo passthru("dir") prints all the files and dates of the directory!
I have tried to type:
echo passthru("name.exe /e")
and also:
echo passthru("cmd /c name.exe /e")
but the result is the same.
How could I do it in Linux?
Thank you very much for reading this.