Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged directory



1 2 Next »
This snippet will create an array of all images in a directory and sub-directories and display them randomly.
4 4794 posted 16 years ago by superuntitled
Like python's os.listdir
1 1735 posted 16 years ago by iloveitaly
This function simply takes a Windows UTC timestamp and converts it to Unix epoch. This was useful when I was pulling LDAP information from Active Directory and the timestamps were ridiculous. Windows builds timestamps by counting seconds since Janua...
0 1757 posted 16 years ago by cllorca
1 1384 posted 16 years ago by dsntos
Here’s a snippet that can help you to remove a non-empty directory from the server. It’s a recursive function that deletes the directory with its files, folders and sub-folders.
2 1648 posted 16 years ago by fackz
This is a function that selects files from a directory and orders them by the last time they were changed, in ascending or descending order. The snippet also calculates how much time passed since the file’s content was changed.
2 2461 posted 16 years ago by fackz
Helpfull function to remove recursively specific folders.
3 1636 posted 17 years ago by eden159
3 1876 posted 17 years ago by fruehjahr
1 1324 posted 17 years ago by stancell
0 1170 posted 17 years ago by screenager
Loads the contens of a dir an sorts them by the date of creation.
2 2026 posted 17 years ago by romanos
Function to retrieve all image files in a given directory
0 1338 posted 18 years ago by coggla
Recursively creates a directory.
1 1410 posted 18 years ago by IanLewis
1 1591 posted 18 years ago by drwitt
This script reads a directory of files. After reading the directory specified it outputs the directory files. Upon output, supplied functions manipulate each filename and format it to make the output filename look better. e.g.: instead of output bei...
2 1953 posted 19 years ago by drewrockshard
1 2 Next »