Mikijs Posted September 24, 2008 Report Share Posted September 24, 2008 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 More sharing options...
cilveks Posted September 24, 2008 Report Share Posted September 24, 2008 Mikij, tev taču vajadzētu zināt kas ir google un kā ar to rīkoties :) Jau pirmajā linkā atbilde: http://www.google.lv/search?hl=lv&q=Al...+allocate+bytes Link to comment Share on other sites More sharing options...
Mikijs Posted September 24, 2008 Author Report Share Posted September 24, 2008 ew bac pareizi :D es tak tikai 1 vieat laizu :D nja sorry es nesmu sen ka gulejis :D vainigs Link to comment Share on other sites More sharing options...
Recommended Posts