Running Windows 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 application.

<?php
system('start C:\Windows\twain_32\escndv\escndv.exe');
?>

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

Labels: ,