Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged files



1 2 Next »
The .jpg extension can be changed to any extension. So if you want to pull out only .txt files, you just need to replace the .jpg with .txt. If you want to list ALL files, just remove the condition.
1 2516 posted 17 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 2961 posted 17 years ago by fackz
1 1412 posted 17 years ago by fruehjahr
3 2384 posted 17 years ago by fruehjahr
This was copied off wordpress FTP plugin
0 1856 posted 18 years ago by luizlopes
Unzip files with PHP.
1 2127 posted 18 years ago by mattkenefick
4 2130 posted 18 years ago by iTony
2 2272 posted 19 years ago by hyperwhat
The original code was meant to be used with register_globals=on. If you cannot or don't want to turn that on, then I have modified the code to work with register_globals=off.
4 2361 posted 19 years ago by Jaymoon
4 3080 posted 19 years ago by assbach
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 2454 posted 20 years ago by drewrockshard
1 2 Next »