About 14,600,000 results
Open links in new tab
  1. Listing all the folders subfolders and files in a directory using php

    Please give me a solution for listing all the folders,subfolders,files in a directory using php. My folder structure is like this: Main Dir Dir1 SubDir1 File1 File2 SubDir2 File3 ...

  2. How to list files and folder in a dir (PHP) - Stack Overflow

    Aug 4, 2013 · Hi I am trying to show all files and folders in a dir with php e.g Dir: system/infomation/ Folder - User Files From User - User1.txt Files From User - User2.txt Files From User - User3.txt ...

  3. PHP Get name of current directory - Stack Overflow

    Apr 3, 2012 · 190 I have a php page inside a folder on my website. I need to add the name of the current directory into a variable for example:

  4. PHP Get all subdirectories of a given directory - Stack Overflow

    How can I get all sub-directories of a given directory without files, .(current directory) or ..(parent directory) and then use each directory in a function?

  5. recursion - List all the files and folders in a Directory with PHP ...

    122 I'm trying to go through all of the files in a directory, and if there is a directory, go through all of its files and so on until there are no more directories to go to. Each and every processed item will be …

  6. List all files in one directory PHP - Stack Overflow

    What would be the best way to list all the files in one directory with PHP? Is there a $_SERVER function to do this? I would like to list all the files in the usernames/ directory and loop over that

  7. php - How do I check if a directory exists? "is_dir", "file_exists" or ...

    415 I want to create a directory if it does not exist already. Is using the is_dir function enough for that purpose?

  8. How to list directories, sub-directories and all files in php

    Oct 17, 2015 · I want to be able to list all the directories, subdirectories and files in the "./" folder ie the project folder called fileSystem which contains this php file scanDir.php. You can view the direct...

  9. php - How to use __dir__? - Stack Overflow

    Sep 12, 2015 · This is an example of how to use __DIR__ and go to the parent directory in different PHP versions, so if you can recognize which one is old and which one is new:

  10. PHP script to loop through all of the files in a directory?

    I'm looking for a PHP script that loops through all of the files in a directory so I can do things with the filename, such as format, print or add it to a link. I'd like to be able to sort the file...