Hi, I seem to be having some trouble with my fgets. I have done a http post to a database using fsockopen and fputs which works fine the database will return xml of the result which is also fine except for the fact that if the response xml is too big (ie. i think larger than 1877 characters) I start to get crlf and the number 2000 put in?? which cause a parse error as i try to put this data through a xml parser??
Any Ideas??
I have tried to crank up to amount of bytes that the fgets read in the while loop i.e.
while(!feof ($fp)) $resp = fgets($fp, 10000);
but that seems to have no effect in the placement of these inserted characters