Top "Scandir" questions

List files and directories inside the specified path

How to get only images using scandir in PHP?

Is there any way to get only images with extensions jpeg, png, gif etc while using $dir = '/tmp'; $files1 = …

php directory-structure file-extension scandir image-file
scandir() to sort by date modified

I'm trying to make scandir(); function go beyond its written limits, I need more than the alpha sorting it currently …

php arrays sorting scandir
Exclude hidden files from scandir

I am using the following code to get a list of images in a directory: $files = scandir($imagepath); but $files …

php scandir hidden-files
Include JUST files in scandir array?

I have an array I'm getting back from scandir, but it contains "." and ".." and I don't want it to. My …

php scandir
How to properly use scandir() in c?

I am trying to store list of files in a char** variable. scandir() finishes properly but I get a segmentation …

c linux string malloc scandir
PHP: Using scandir(), folders are treated as files

Using PHP 5.3.3 (stable) on Linux CentOS 5.5. Here's my folder structure: www/myFolder/ www/myFolder/testFolder/ www/myFolder/testFile.txt Using …

php scandir
PHP scandir recursively

I'd like my script to scandir recursively, $files = scandir('/dir'); foreach($files as $file){ if(is_dir($file)){ echo …

php file scandir
How to sort files in some directory by the names on Linux

I use opendir() and readdir() to display the file names in a directory. But they are disordered. How can I …

c linux file sorting scandir
PHP most efficient way to list the files in a very large directory

Possible Duplicates: Get the Files inside a directory PHP: scandir() is too slow I have a directory with tens of …

php scandir
PHP RecursiveDirectoryIterator

I want to do a RecursiveDirectoryIterator on a set of folders in a directory, say ./temp and then list the …

php scandir