Just installed the latest version of XAMPP for Windows.
Running the following simple PHP script that connects to another servers XML tree and test that everything works OK:
$fp = fsockopen('XXX.XXX.XXX.XXX', 'XXXX', $errno, $errstr, 60);
$success = 1;
if($success != 1)
fputs($fp, "get /admin.cgi?pass=XXXXXXXX&mode=viewxml http/1.0\r\nuser-agent:(Mozilla Compatible)\r\n\r\n");
$page .= fgets($fp,1000);
$loop = array(SERVERTITLE, WEBHITS);
$y = 0;
while($loop[$y] != '')
$pageed = ereg_replace(".*<$loop[$y]>", "", $page);
$phpname = strtolower($loop[$y]);
$$phpname = ereg_replace("</$loop[$y]>.*", "", $pageed);
But unfortunately I get the following error when going to view the page in IE8 and IE7 from various PCs:
The XML page cannot be displayed
Cannot view XML input using style sheet
Please correct the error and then click the Refresh button, or try again later
Invalid at the top level of the document
Error processing resource 'http://XXX.XXX.XXX.XXX/temp.php'. Line 1, Position 1
HTTP/1.0 200 OK
I have Apache 2.2.14 / PHP 5.2 installed on another machine and the above script works perfectly!
I am wondering what could be causing the error - is there something I need to change in the Apache config file?
Have tried to view this test page from different PCs but still get the same error.
Any help would be greatly appreciated,