I know this question is probably straightfoward but I'm new to php and programming... I want to write the results of a recursive search to a text file, and also ensuring that any other search performed will not overwrite the exisiting data, but add to it.
İşte benim kod:
<?php
$it = new RecursiveDirectoryIterator("L:\folder\folder\folder");
$display = Array ( 'jpeg', 'jpg', 'tif', 'tiff', 'bmp', 'shp', 'gif', 'png' );
foreach(new RecursiveIteratorIterator($it) as $file)
{
if ( In_Array ( SubStr ( $file, StrrPos ( $file, '.' ) + 1 ), $display ) == true )
{
echo $file . "<br/> \n";
}
}
?>
Peki yerine sonuç yankılanan, ben daha ziyade bir metin dosyasına yazılı olurdu. Ayrıca, eğer mümkünse, sonuç yankı ve bir metin dosyasına yazma. plz bana bu teşekkür başarmak için ne ekleyebilirsiniz kod bildirin :)