How can I call a command line executable from within PHP?

Check out the "Program Execution functions" here :

http://www.php.net/manual/en/ref.exec.php

As well as the `backtick` execution operator :

http://www.php.net/manual/en/language.operators.execution.php

Consider exec() :

exec — Execute an external program :
---------------------------------------------------
http://www.php.net/manual/en/function.exec.php

Was this answer helpful?

 Print this Article

Also Read

I'm new to PHP, and would like to know if there is a code snippet for emailing a lost password to a subcriber

First, we must assume that you are currently storing the username/login, password and the email...

How to send email using PHP script?

...

What is the essence of PHP encryption(using crypt(),mcrypt(),etc)if data on transit isn't safe?

The apathetic response is, of course, "there is no point." If you allowed a login over normal...

I used PHP for one of the web sites I would like to move over to your hosting service. Is PHP fully supported and (if so) what versions of PHP are supported?

Yes, PHP is fully supported and we do support PHP 5.

Why i couldn't fetch my variable from the form?

Register_Globals directive is set to OFF because of potential security issues.  PHP has this...