Jump to content

Running batch script on remote machine using PHP


bobsonbemoi

Recommended Posts

I have a windows batch script that I've hosted on an FTP site (ftp://ftp.domainname.com/folder/script.bat). I have a link to it on a webpage. When a visitor clicks on the link the browser gives him the option to save or to run the file. If the user wants to save the file and look at it afterwards, he can. I do not want this to be possible. Is there a way to have the browser directly run the script on the visitor's PC while only giving him the option to run or not (just ask him for his consent) using PHP programming? Thanks for any suggestions!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.