A
Anonymous
Guest
When I try to load a Yahoo Financials stock screen for parsing for my personal stock analyzer I'm coding, fopen only loads part of the page:
Is this because it is timing out or something and how do I change the maximum timeout?
Also on a related note, on my other website (but on the same server) sometimes when users upload pictures it looks like it only uploads part of the picture. I assume this is the same problem as above.
Code:
$open = fopen("http://screen.yahoo.com/b?gr=155%2F&peg=/1&b=1&z=gr&db=stocks&vw=1", "r");
$haystack = fread($open, 20000);
fclose($open);
$pos = 0;
echo $haystack;
Is this because it is timing out or something and how do I change the maximum timeout?
Also on a related note, on my other website (but on the same server) sometimes when users upload pictures it looks like it only uploads part of the picture. I assume this is the same problem as above.