Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged list



1 2 Next »
This is another way to get a list of files ordered by upload time.
1 997 posted 14 years ago by fackz
0 583 posted 14 years ago by paulgrenwood
0 576 posted 14 years ago by iloveitaly
This snippet will create an array of all images in a directory and sub-directories and display them randomly.
4 3078 posted 14 years ago by superuntitled
Like python's os.listdir
1 848 posted 14 years ago by iloveitaly
This code replaces a normal category template. It sorts all posts by their category/subcategory instead of bunching them all together and ordering them by date. A bit complicated to explain in a box this size... Check the link for a run through!
1 756 posted 14 years ago by rocktronica
like array_key_exists but accepts an array of key values to check
0 443 posted 14 years ago by iloveitaly
2 830 posted 14 years ago by iloveitaly
Generates an options list of years for a select box, going from current year backwards through the number of years specified in the first variable. Useful for birthday fields on signup forms. eg. 2009, 2008, 2007, 2006 ... 1912, 1911, 1910, 190...
3 902 posted 15 years ago by iridium
0 650 posted 15 years ago by albertomori
0 491 posted 15 years ago by scalhoun2005
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 901 posted 15 years ago by fackz
3 718 posted 15 years ago by fruehjahr
Simplified form to extract data through MySQL
0 529 posted 15 years ago by LondonWeb
[directory] ├index.php //this snippet ├imageA.jpg ├imageB.gif └imageC.png This snipet displays the thumbnail of the picture file that exists in the same directory. When the thumbnail image is clicked, the original size image is...
6 767 posted 16 years ago by kyokutyo
Use this API to access names and addresses in a user's webmail (Gmail, AOL, Hotmail, and Yahoo). Make it easy to send friend invites for a social site and import contact lists. Rapleaf maintains up to date code on the importer and never stores passwo...
0 595 posted 16 years ago by dannymo2
1 728 posted 17 years ago by drwitt
0 554 posted 17 years ago by gdonald
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 879 posted 17 years ago by drewrockshard
1 2 Next »