Php controlled program

Assume that you have a C exe file or just any exe for that matter. In our specific example say we have generated the “Airtel tune.exe” in c . Now you create a php file having one “Submit” button.

And once you click the “submit button” you need to execute airtel tune.exe . This can be established by the following code.

System(“location of file” “arguments if any”) ;


System(“a:/airteltune.exe”) ;

Your Submit button can call the php file which has the above code and thus initiate the execution of this exe file. This is true for any program. You may even control your parallel port from php by writing appropriate c codes which can be called form the php file itself.



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s