Jump to content
php.lv forumi

ko daru nepareizi ?


Mikijs

Recommended Posts

kods

<?php
ini_set("memory_limit","234048953");
$html=file_get_contents("refreshed3.sql");
$exp=explode("%Atzisana%", $html);
$count=count($exp);
for($i=0;$i<=$count;$i++){
$new_html.=str_replace("%Atzisana%", "%Atzisana".$i."%", $exp[$i]);
}
$file="refreshed4.sql";
$f=fopen($file, 'w');
fwrite($f, $new_html);
fclose($f);
echo "That was a big file =D";
?>

ko daru nepareizi ?

 

[error]

Fatal error: Allowed memory size of 234048953 bytes exhausted (tried to allocate 46257621 bytes) in /home/../html/make.php on line 7

Link to comment
Share on other sites

×
×
  • Create New...