justus Posted March 26, 2004 Report Share Posted March 26, 2004 direktorija kuraa ir daudz txt faili un to saturu ielikt vienaa masiivaa, katra faila saturs atsevisks elements>> :unsure: :unsure: Link to comment Share on other sites More sharing options...
rnc Posted March 26, 2004 Report Share Posted March 26, 2004 (edited) <?php $dir = opendir("/lala/"); while ($fails = readdir($dir)) if($fails != "." && $fails !="..") $masivs[] = file_get_contents($fails); ?> Kaa vienmeer man ir slinkums notesteet, rakstu no galvas :) Updeits: Mh, patesteeju, iet :) + veel izdomaaju, ka veel nodereetu pielikt pie ifa lai vinsh paarbauda fai $fails nav basename($_SERVER['PHP_SELF']) :) (tas buus noderiigi, ja skripts staavees tajaa pashaa diraa kur visi tie txt faili <?php $dir = opendir("/lala/"); while ($fails = readdir($dir)) if($fails != "." && $fails !=".." && $fails != basename($_SERVER['PHP_SELF'])) $masivs[] = file_get_contents($fails); ?> Edited March 26, 2004 by rnc Link to comment Share on other sites More sharing options...
Recommended Posts