Fri, 17 May 2024


How to read a folder content?

By: Nathalie, NetArt Media
Mon, 24 May 2021

<?php
$folder=dir(".");

while($folderEntry=$folder->read())
{
echo $folderEntry."<br>";
}

$folder->close();

?>


Category: PHP Examples
Share this post:



See All Scripts






Subscribe for our newsletter

Receive the latest blog posts direct in your mailbox