Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
Function to convert a one dimensional array to two dimensional with option to specify how many columns. Returns two dimensional array on success or false on fail.
0
3701
posted 13 years ago by kosinix
This SSH API is used to execute remote commands, send and receive files.
0
1981
posted 13 years ago by ryantxr
Font Squirrel is a great place to convert your fonts to the different formats required.
http://www.fontsquirrel.com/fontface/generator
0
1907
posted 13 years ago by adrianparr
Toggle approve button, compatible with IE9, not working in IE7 or below
0
1698
posted 13 years ago by msstar
This script downloads the latest version of WordPress to your site rather than having to use FTP.
1
1310
posted 13 years ago by nathan_roberts
When you add facebook like button to your site, probably, you also want to save the number of likes of your pages to your database.These data are very useful and very important because they tell you which of your articles are better than others. More...
0
3695
posted 13 years ago by ginoplusio
Consular los tablespace y mostrar su tamaño , uso y espacio libre en Megabyte
0
6117
posted 13 years ago by thescorpion
Suppose you wanted to check if a user was viewing a singular post with the post type of testimonial. You can use the next code sample to perform this check.
0
2347
posted 13 years ago by i-am-andy
This PHP adds the style.css of the active Theme to the WordPress TinyMCE Post and Page editor.
0
1908
posted 13 years ago by ecksteing
Credit for this goes to Adobe, Ric Ewing, Kevin Williams, Aden Forshaw and Sidney de Koning.
0
5459
posted 13 years ago by adrianparr
Snippet to show a simple use of the transient API when querying posts.
0
1924
posted 13 years ago by Mat_
Just a rework of http://snipplr.com/view/7523/ with an added switch to change type number to extention name.
0
2447
posted 13 years ago by Some0ne
Allows you to click a given checkbox X, then shift click another checkbox Y. All checkboxes between X and Y will be checked or unchecked based on the state of checkbox Y. i.e. if you're unchecking Y all boxes between X and Y will also be unchecked.
1
3378
posted 13 years ago by ReedD19
Use: echo format_size(filesize("fichier"));
Example result: 13,37 Ko
0
2782
posted 13 years ago by zhyar
Require the ID3 lib.
Place the script in the directory containing the mp3 files.
0
1506
posted 13 years ago by zhyar
description from title, image size from function.php (add_image_size( 'descr', 278, 200, true );)
0
2066
posted 13 years ago by shin
Find and replace contents of files ending in .php with nothing. then append contents of template.php to all files in directory
0
1909
posted 13 years ago by zlincoln