I put this question here because I think the problem is in the PHP.INI file...
I am trying to create a web service that sends an xml response back to a client request. The problem I am having is when I execute the client request, the browser hangs and eventually comes back with a server time out error. I have checked the PHP.INI settings to make sure allow_url_fopen is set to on. I am hosting the website on an IBM i using Zend Server. I tried using the CURL functions and that doesn't work either. Any suggestions what to check for in PHP.INI?
Thanks,
Ray
Server side: file name is XML3.php
<?php
ob_start();
header("Content-Type:text/xml");
echo "<?xml version='1.0' encoding='UTF-8' ?>";
echo '<posts>';
echo '<post>';
echo "<title>title1</title>";
echo "<body>this is the body</body>";
echo "<post_date>02/10/2012</post_date>";
echo '</post>';
echo '</posts>';
ob_end_flush();
?>
Client side:
<?php
$xml = file_get_contents('http://corvetteamericadealers.com/dev1/Examples/XML3.php');
$sxe = new SimpleXMLElement($xml);
var_dump($sxe);

