Hi,
I'm running on Windows2000 latest rev. I updated from PHP 4.2.2 to PHP 4.3.1., binary installation was used.
With the 4.3.1. release I'm not able to create a stream to an executable, a .exe, in the cgi-bin directory of my browser.
Accessing eg. phpinfo.php in the cgi-bin directory works fine.
Accessing the executable directly from within a browser works fine.
Code is like:
$myfile = "http://<ipaddress>/cgi-bin/<executable>?<var 1>&<var n>";
$fd = fopen($myfile, "r");
if( !$fd )
{ die("Could not connect to host." . $php_errormsg);}
while (!feof ($fd)) {
$buffer = fgets($fd,1024);
echo $buffer;
}
fclose ($fd);
error is:
Warning: fopen([url]http://[/url]<ipaddress>/cgi-bin/<executable>?<var 1>&<var n>) [function.fopen]: failed to create stream: HTTP request failed!
Anyone an idea?
Jan