Jump to content

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  ::)

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.