Wyskakuje mi taki błąd przy tworzeniu miniatury zdjęcia
<?php function createGallery( $pathToImages, $pathToThumbs ) { $output = "<html>"; $output .= "<head><title>Thumbnails</title></head>"; $output .= "<body>"; $output .= "<table cellspacing=\"0\" cellpadding=\"2\" width=\"500\">"; $output .= "<tr>"; // open the directory $counter = 0; // loop through the directory { // strip the . and .. entries out if ($fname != '.' && $fname != '..') { $output .= "<td valign=\"middle\" align=\"center\"><a href=\"{$pathToImages}{$fname}\">"; $output .= "<img src=\"{$pathToThumbs}{$fname}\" border=\"0\" />"; $output .= "</a></td>"; $counter += 1; if ( $counter % 4 == 0 ) { $output .= "</tr><tr>"; } } } // close the directory $output .= "</tr>"; $output .= "</table>"; $output .= "</body>"; $output .= "</html>"; // open the file // write the contents of the $output variable to the file // close the file } // call createGallery function and pass to it as parameters the path // to the directory that contains images and the path to the directory // in which thumbnails will be placed. We are assuming that // the path will be a relative path working // both in the filesystem, and through the web for links createGallery("../rsah/upload/","../rsah/upload/thumbs/"); ?>
Fatal error: Allowed memory size of 73400320 bytes exhausted (tried to allocate 73138147 bytes) in
Czy to wina kodu, czy małej ilości memory size ustawionej w php.ini?