3 ways to run Desktop Applications in PHP

There are times that you want to call or run a desktop application in your web based applications. For example, you want to have a button “scan” that will call your scanner’s application, the script below will run any application you want as long as you specify the right path to the application.

system() execute an external program and display the output.

exec() execute an external program

passthru() execute an external program and display raw output.

Now when I click the button “scan” it will instantly call escndv.exe which is my scanner’s application.

Sharing is caring!