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

Check out the "Program Execution functions" here :

As well as the `backtick` execution operator :

Consider exec() :

exec — Execute an external program :

Was this answer helpful?

 Print this Article

Also Read

I'm new to PHP, where should I start?

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

How to redirect from php page to another php page?

For redirecting, you can use the PHP header() function like so : header("Location:...

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

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

Is it possible to have MySQL and PHP run with one provider and the "database driven website" with the other ? Say with the help of only SSI / CGI?

Yes. Let your CGI/SSI include from the urls on your other site. On yourother site you return...