I installed CentOS 4.4 which had php 4.1.3 which i upgraded to php 5.1.6 using yum
$yum update -y php. Everything worked fine and i checked the "phpinfo()" the php version definitely is 5.1.6. I have a REST API that uses DOM XML to parse the ATOM/XML feed. I tested the code and it runs perfectly on my windows sytem that has apache2,php5.1.6 and mysql5 installed(thanx to XAMPP Version 1.5.4a).
Now when i try to run the same php code on my linux system it doesnt execute. all i get is a blank page, i checked the page source also and its empty. when i comment the dom segments of the code and then run i can see the dummy output.
For somereason my php code isnt working on linux. does anyone know what could be the reason ??
here is the code snippet:
$request=' http://localhost:8080/api/search?index=Default&start='.
$start.'&results=10&query='.urlencode($query) ;
$response=file_get_contents($request);
if ($response === false) {
die('Request failed');}
$doc = new DOMDocument(); // execution STOPS here and the output page is blank
$doc->loadXML($response);
someone plz help me out here. i need the code to work on linux.
thanx in advance