Jump to content

call a program stored in my hard disk from my website?


mariam

Recommended Posts

Provided the Apache user has the correct permissions to do what you want to do, you can execute shell commands on the server like you would through a terminal. Take a look at shell_exec. There's actually a variety of functions you can use to execute the commands, all differing slightly; system, exec, passthru. Plus other methods I'll not get into right now.

Provided the Apache user has the correct permissions to do what you want to do, you can execute shell commands on the server like you would through a terminal. Take a look at shell_exec. There's actually a variety of functions you can use to execute the commands, all differing slightly; system, exec, passthru. Plus other methods I'll not get into right now.

 

But it can't be done directly on one of his web pages?  :confused:

Err.. I'm not entirely sure what you mean by that. The commands on the server will be executed at the same time as the rest of the PHP code..?

 

I think they want a Java applet to run on the user's screen when someone interacts with a PHP-driven web page.

Err.. I'm not entirely sure what you mean by that. The commands on the server will be executed at the same time as the rest of the PHP code..?

 

I think they want a Java applet to run on the user's screen when someone interacts with a PHP-driven web page.

 

Ah, that would actually make more sense. I was thinking along the lines of a servlet  ::)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.