Welcome To Snipplr
Everyone's Recent PHP Snippets Tagged list
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
This is another way to get a list of files ordered by upload time.
1
975
posted 14 years ago by fackz
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
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
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
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
[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
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