Problems with fopen

I’m using this example code, to post data between a web server and a compiled php "client"

The code works fine running on localhost, but compiled I get errors with fopen(), it seems that the host “heserver” is unknown.
Trying with ghe:// isn’t recognized.

Any ideas on how or if this can work with the compiled php running in chrominium engine?

fopen can’t open URLs that begin with ghe:// or http://heserver/
Please read this topic: it explains you why.

However, fopen can open URLs to your remote web server, in order to post data for instance.