Код: Выделить всё
$dir ='';
$dh = '';
$file = '';
$cnt=1;
echo 'Start
';
//$dir = "public_html/system/matrix_test/"; //for automated running
$dir = "matrix_test/";
// Open a directory, and read its contents
if (is_dir($dir)){
if ($dh = opendir($dir)){
$n=0;
$i=0;
$x=0;
echo 'open
';
while (($file = readdir($dh)) !== false){
echo $file.' file 0
';
echo $cnt.' cnt 0
';
if($cnt
Подробнее здесь: [url]https://stackoverflow.com/questions/79317935/running-out-of-memory-processing-excel-files-read-from-a-directory[/url]
Мобильная версия