Is it possible to run an exe file directly onto the server without downloading/saving into client machine?
I had used that exec() function .But it is showing no display.

<?php

echo exec("d:\example\php_exe\1436.exe");

?>

Also I tried it using backticks operator

could be your escape character... try writing the location of your exec file as follows:

d:\\example\\php_exe\\1436.exe

I hope that works.

Tried it using following..But my browser is hanged.


<?php

echo exec("d:\\example\\php_exe\\1436.exe");

?>

well, I don't know then what the problem could be. one final idea is to escape the underline as well, just in case...

echo exec("d:\\example\\php\_exe\\1436.exe");

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.