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 160 posted 10 years ago by fackz
0 85 posted 10 years ago by paulgrenwood
0 69 posted 11 years ago by iloveitaly
This snippet will create an array of all images in a directory and sub-directories and display them randomly.
4 491 posted 11 years ago by superuntitled
Like python's os.listdir
1 152 posted 11 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 105 posted 11 years ago by rocktronica
like array_key_exists but accepts an array of key values to check
0 57 posted 11 years ago by iloveitaly
2 141 posted 11 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 143 posted 11 years ago by iridium
0 92 posted 11 years ago by albertomori
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 146 posted 11 years ago by fackz
3 117 posted 11 years ago by fruehjahr
Simplified form to extract data through MySQL
0 83 posted 11 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 142 posted 12 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 83 posted 12 years ago by dannymo2
1 111 posted 13 years ago by drwitt
0 80 posted 13 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 176 posted 14 years ago by drewrockshard
This is a collection of US States (Long and abbreviated names) and world countries. There are a few examples of usage below the collections.
41 640 posted 14 years ago by neogeek
1 2 Next »