Thanks molly.
Note though i said "at the moment" i pretend it would just write a text file on his PC.
I need to need to give an answer to that client. In reality, it will need to receive a response on the mobile in an html table format (but I will dig into it later).
;-)
So, to do that i DO need wampserver installed on his PC, right?
And once he has his wampserver installed
I can access the php file on his computer
whit the call from teh mobile browser
"181.68.73.24//temp/runmyexe.php"?
The answer is both yes and no.
Yes, what you wrote what was quoted above: things can be done that way.
Have you looked at the link i posted ?
Shame, as something based on this is a very neat approach
That small piece of code acts as a html server. Since you 'code' it, you can make it do whatever you want ;-)
(well, except executing .php scripts without having a complete server like WAMP).
^^ adjust that example to not serve only a html page, but:
- first executes your program using standard windows methods of executing another program from shell
- once finished return the result as an html table.
You can check how this works on a local machine:
- run your http server
- start your browser and connect to your localhost using the address bar
- watch what happens ;-)
In the end:
- you run the html server on the pc
- your mobile device uses the browser and connects to the static ip-address using the internet
- the htmlserver 'sees' the connection and istarts your program, waiting for the results.
- once the results are produced, you serve them back to the mobile browser.
Only requires to install the simplehttpserver on the clients machine (with your modifications of course

).
^^ but do note: this way is very insecure and requires some extra security measures. You do not want everyone in the world to be able to connect to that httpserver
