Problems with fopen

I’m using this example code, to post data between a web server and a compiled php "client"
http://www.ajaxapp.com/2010/03/15/php-how-to-http-post-without-using-curl/

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: http://www.exeoutput.com/help/accessingfiles.htm it explains you why.

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