What do you want to save?
Add Code snippet
New code examples
-
PHP 2021-11-13 15:46:13
loop through files php
<?php $folder = '/path/'; //directory or folder to loop through $checkFiles = scandir($folder); //scan folder content $fileCount = count($checkFiles); //count number of files in the directory $i = 0; //set for iteration; while($i < $fileCount)... Add solution -
PHP 2021-10-24 16:28:05
php list output images in a directory
<?php echo scanDirectoryImages("uploads"); /** * Recursively search through directory for images and display them * * @param array $exts * @param string $directory * @return string */ function scanDirectoryImages($directory, array $exts... Add solution