Welcome To Snipplr


Everyone's Recent PHP Snippets



This is the simple plugin for your wp site , with this plugin you can embed snippets code from http://snipplr.com . Easy to use , just paste url from http://snipplr.com and thats it. Version: 1.1
0 2467 posted 9 years ago by snipembed
Convert easily XML File or String to Associative Array in PHP
0 2822 posted 9 years ago by kavikms
Se puede escribir código HTML sin problema insertando además las variables php que se necesiten dentro del propio "relleno"
0 2772 posted 10 years ago by tionazo
try to with mysqli_*
0 2330 posted 10 years ago by smagic39
A plugin that adds widget functionality to a third-party video modal plugin. The widget accepts a YouTube video ID and a thumbnail URL of the user's choice. It then generates a thumbnail link that launches a video modal via the third-party plugin. Op...
0 2414 posted 10 years ago by julian90
feed class with baseUrl and endpoint curling the target and caching on memcache
0 1328 posted 10 years ago by ramirog89
If you syndicate your content with an RSS feed it can help to drive additional traffic to the content pages.
0 2441 posted 10 years ago by COBOLdinosaur
define ur thumbx
0 1078 posted 10 years ago by ramirog89
Wordpress Loop - WP_Query
0 1311 posted 10 years ago by alanyoshida
I have been trying to solve my problems on stackoverflow, but none seems to help. Hopefully someone here could help me.
0 2751 posted 10 years ago by raymondeu
Using cURL to get webpage DOM
0 1079 posted 10 years ago by mos666
This is a simple PHP class that can be used to produce nicely formatted reports from unorganized data.
0 2410 posted 10 years ago by COBOLdinosaur
This source code contains two files: 1) result.php is a php webpage which expects a post request and renders some static results 2) mycurl.php uses curl to post programmatically some data to the result.php and after rendering the result is being re...
1 2857 posted 10 years ago by pligor
Snippet for a parent page to list child pages with excerpts.
0 2409 posted 10 years ago by hussong
I can't say I can rely on mb_detect_encoding(). Had some freaky false positives a while back. The following code will detect when you need to enconde or decode it.
1 2345 posted 10 years ago by fackz
A PHP function for calculating the distance between two UK postcodes
0 1728 posted 10 years ago by mickeywilko
Get Current Server Path in PHP
1 1876 posted 10 years ago by ursdeep
PHP pagination simple algorithms;
0 1277 posted 10 years ago by mus7afa
An Utility to Search Text in All Files of Any Directory in PHP
1 1880 posted 10 years ago by ursdeep
Allow login from specific IP Address
0 1520 posted 10 years ago by nbpurohit
Disable "Add to basket" button for price zero
0 1316 posted 10 years ago by nbpurohit
Shorthand for Ternary Operator in PHP
1 2509 posted 10 years ago by ursdeep
Different ways to change the Maximum Execution time for PHP Scripts
1 2715 posted 10 years ago by ursdeep
Courtesy Kevin Chard at WPSnipp.com. Adding this snippet to the functions.php of your wordpress theme will redirect your search to the post automatically when wordpress only returns a single search result.
1 1852 posted 10 years ago by adambundy
This snippet allows an array or multiple arrays to be re-sorted using multiple key fields.
0 1335 posted 10 years ago by COBOLdinosaur
This is damn crazy! sQlite does not have all the trig functions need to do distances. So here is how you load that into sQlite on the fly.
0 1348 posted 10 years ago by brownrl
Starter .info file
0 1354 posted 10 years ago by sherakama
Hi, here i implement multiple image upload custom field to page post type if you want it for another post type just change post type name. Add this following code to your current theme’s function.php file. Go to your pages from wordpress admin a...
0 6447 posted 10 years ago by nbpurohit
Override yii's jquery files and load your own.
0 1375 posted 10 years ago by federaik_
example of php code I worked on
0 2455 posted 10 years ago by johnschneider