On 8/29/07, Aram Shatakhtsyan <[EMAIL PROTECTED]> wrote:
>
> How to run C++ program(*.exe) with PHP, and then terminate it.
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
PHP can do anything. But the matter is where the host permits to do such.

// See the following algorithm
function exec_php($host){
if (its $host that runs php as a module) {
  then it depends on the rights of $host
   if ($host is in the group of root){
      $host can do any thing.
   } else {
      $host will do those tasks that its been permitted.
   }
}
}

If (you are root and running php as a CLI){
   you can do anything (whatever you wish)
}.
if (you are normal user and running php as a CLI){
   you cant do some specific task like killing process.
}

// see the function definition above.
exec_php(apache);
exec_php(IIS);

I think you got it.
sorry for the approach. But it makes clear logic. :)

Thanks.

-- 
shout at http://shiplu.awardspace.com/

Available for Hire/Contract/Full Time

Reply via email to