fopen and "slow" probllem
Posted: Tue Jan 06, 2004 2:06 am
i have this code :
when i tried to use it yesterdya for some reason i thonk there was a problem on the web site i was reading the page
beacuse of that in some point the apache.exe gave me FATAl error!!!!!
and the apache has crashed!
how can i prevent it?
thanks in advance
peleg
Code: Select all
<?php
$handle = fopen ("http://www.bankisrael.gov.il/eng.shearim/index.php", "rb");
$contents = "";
while (!feof($handle)) {
$data = fread ($handle, 1024);
$contents .= $data;
//echo $contents;
}
fclose ($handle);
?>beacuse of that in some point the apache.exe gave me FATAl error!!!!!
and the apache has crashed!
how can i prevent it?
thanks in advance
peleg