Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 6 7 8 9 10 ... 147
Format a mysql datetime into a PHP date
0 1008 posted 10 years ago by flatearthcomms
Get google pagerank of websites
0 790 posted 10 years ago by melisayves
Take an associative array of options and their default settings. Remove entries of options that do not exist in the default options. Return a safely filtered and overridden array of options.
0 753 posted 10 years ago by wyattstorch42
php
0 1051 posted 10 years ago by manishwebginger
#Wordpress Debug Info ##Find out basic information about your WordPress installation and server environment
2 646 posted 10 years ago by gregdbarnes
add to functions.php
1 704 posted 10 years ago by gabbo
Prints all $_Server variables to table
0 830 posted 10 years ago by kidmizere
Text for functions.php
1 764 posted 10 years ago by gabbo
Mail merge allows you to produce document (potentially large numbers of documents) from a single template and a structured data source. The letter may be sent out to many recipients with small changes, such as a change of address or a change in the g...
0 1292 posted 10 years ago by johansonkatherine
This example shows you how to remove file extension from URLs using .htaccess file directives. Remember, that "mod_rewrite" works only on Apache server. Before trying please be sure that you are working on Apache server and the "mod_rewrite" module/e...
0 1003 posted 10 years ago by apphp-snippets
We know that normally index.html or index.php is the default page for many servers, when visitor types a directory without specifying a file name. You can change this rule with .htaccess:
0 975 posted 10 years ago by apphp-snippets
This uses the timthumb script saved as sized.php in the theme directory
1 840 posted 10 years ago by bitsculptor
This script is a custom module to copy one field to another.
0 959 posted 10 years ago by DesignGoggles
This code demonstrates a simple way to validate IP address using preg_match() PHP function. This is a very simple code, that allows you to perform this task quickly with a minimum lines of code.
0 1042 posted 10 years ago by apphp-snippets
This code demonstrates how to create and parse the JSON data format of using array of PHP. It's a very simple code, that allows you to perform this task.
0 1080 posted 10 years ago by apphp-snippets
In this post you will learn how to log errors in database in cakephp.
0 902 posted 10 years ago by kp32
Button that onclick with scroll to top of the page
0 815 posted 10 years ago by tucq88
This shortcode was tested with The Events Calendar version 3.3.1 Usage: [upcoming_events limit="6"]
0 904 posted 10 years ago by crypticsoft
http://bueltge.de/wordpress-feeds-deaktivieren/794/
1 857 posted 10 years ago by gabbo
[ Yii Framework ] Use this to redirect to previous page or last request URL
0 934 posted 10 years ago by tucq88
used ceil instead floor
0 825 posted 10 years ago by Balamir
The give link helps you to integrate the Amazon Simple Pay IPN to your web application.
0 690 posted 10 years ago by mafhh14
Introduction: Pin Based login is a mechanism to authenticate user, by sending one time valid pin to user's phone. This implementation makes use of a mOTP API for sending one time pin, via Missed call and thus eliminates any cost involved with the...
0 930 posted 10 years ago by motp
In this article I would like to share how to make a sortable index view with Laravel 4. Let’s assume you have an index view with a table. Like this example for a table that contains posts.
0 822 posted 10 years ago by CreativePunch
Creating a nested array from items with parent IDs. This is useful for when you have a website working with multiple categories with parent categories. But it can be applied anywhere, really!
0 1484 posted 10 years ago by CreativePunch
Generates a random string of a given length and character set.
0 783 posted 10 years ago by wyattstorch42
Save this script on your localhost and run it whenever you need to generate a "hamburger icon" of a specific size and color. Just tell it the dimensions and bar color and it will output a mathematically perfect hamburger icon as a transparent PNG, wh...
0 763 posted 10 years ago by wyattstorch42
In this tutorial I will go over implementing Full-Text search in Laravel 4 . Those who have used Laravel 3 in the past may remember that there used to be support for FULLTEXT indexes. This functionality has been removed in Laravel 4 but can still ea...
0 793 posted 10 years ago by CreativePunch
Function to check existence of value in multidimensional array.
0 927 posted 10 years ago by Sadeveloper
List of prime numbers between two number
0 970 posted 10 years ago by Sadeveloper
1 ... 6 7 8 9 10 ... 147