I am trying to create an application for client side that can be called by php and terminates certain program when it executes. I tried developing an exe file for this but I can’t call the exe file via php on client side. Is there any other format of application I can develop that can be called by php? Can I develop a windows service and call it via php instead? I can ask users to download and install anything. However I cannot use javascript to achieve this.
Share
I managed to solve this problem but I’m not sure how applicable it is for anyone else who might ever face this problem.
I set up a cookie in php and I check for the value of that cookie in the client’s computer.
In my case I’m forcing the clients to use XULRunner as their browser client so there is only one location for the cookie to exist. In case the browser is not fixed, all locations for all browsers need to be handled separately.
Following is the code I am using for the application in client’s computer:-
For server side, I just set up a cookie named SEBclose2 in php when client presses the exit button.