Running an exe file using PHP

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

<?php

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

?>

Any body knows please help me.

maybe, system() PHP: system - Manual?

“it is showing no display”…
should the executable in question return anything?
are you running PHP with error_reporting turned on?

Are you tying to run the executable on the server? Or on the client machine?
Your post makes it sound like you want to run it on the client.

That won’t work, users will have to download the file first (and run it manually).

Thank god for that :smiley:
Immagine what would happen if you could run an exe on any client without their approval…

I’d be rich!
:slight_smile:

hahaha, it was the client’s machine!?

From the OP’s post it looks like that.
I’m sure the OP has his good reasons why he’d want to do that. And it isn’t possible for even better reasons. But no reason to laugh about the question.

I think without saving .exe can’t work.

“Welcome to my webpage. I’m just going to run “del C:\.” on your system now…”

Exactly.