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 975 posted 14 years ago by fackz
0 567 posted 14 years ago by paulgrenwood
0 557 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 3046 posted 14 years ago by superuntitled
Like python's os.listdir
1 828 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 735 posted 14 years ago by rocktronica
like array_key_exists but accepts an array of key values to check
0 429 posted 14 years ago by iloveitaly
2 809 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 876 posted 14 years ago by iridium
0 635 posted 15 years ago by albertomori
0 475 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 875 posted 15 years ago by fackz
3 702 posted 15 years ago by fruehjahr
Simplified form to extract data through MySQL
0 517 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 745 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 585 posted 16 years ago by dannymo2
1 709 posted 17 years ago by drwitt
0 537 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 862 posted 17 years ago by drewrockshard
1 2 Next »