Mikijs Posted September 24, 2008 Report 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
cilveks Posted September 24, 2008 Report 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
Mikijs Posted September 24, 2008 Author Report Posted September 24, 2008 ew bac pareizi :D es tak tikai 1 vieat laizu :D nja sorry es nesmu sen ka gulejis :D vainigs
Recommended Posts