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

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'm new to PHP, where should I start?

Well, try this.The official PHP web site as a lot of useful information:   ...

What does parsing means in PHP?

Parsing is the process where the php source code (.php, .php3, .php4, .phtml orwhatever) is...

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

What's the best way to start writing a PHP program?

Firstly figure out, on paper, exactly what you want to do. Otherwise, you'll just be coding...