Hi,
I am trying fsockopen in localhost.
I am trying to access live server file.
I have created two files in live server.
1) Dynamic PHP file which produce XML
2) Static XML file
Now, Once the fsockopen connection is success and i am trying to get the dynamic xml content in a variable
If i echo the variable, For the first time i am getting the exact result. View source gives the xml data. But i refresh i am getting a junk value in front of xml data and after xml data i am getting 0
49 XML data 0
Once i restart Apache, again getting xml data, after refresh browser getting 49 XML data 0
But instead of PHP file, If i call the statick XML, I am getting correct xml file for any number of refresh.
Can you please help me on this?