Welcome To Snipplr


Everyone's Recent PHP Snippets



1 ... 6 7 8 9 10 ... 148
Format a mysql datetime into a PHP date
0 568 posted 8 years ago by flatearthcomms
Get google pagerank of websites
0 453 posted 8 years ago by melisayves
This batch script writes a temporary .vbs file which will invoke a UAC prompt to open an administrator command prompt. This makes it easy to create a shortcut to an admin prompt.
0 476 posted 8 years ago by deanhouseholder
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 460 posted 8 years ago by wyattstorch42
php
0 598 posted 8 years ago by manishwebginger
#Wordpress Debug Info ##Find out basic information about your WordPress installation and server environment
2 344 posted 8 years ago by gregdbarnes
add to functions.php
1 395 posted 8 years ago by gabbo
Prints all $_Server variables to table
0 537 posted 8 years ago by kidmizere
Text for functions.php
1 437 posted 8 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 802 posted 8 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 583 posted 8 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 555 posted 8 years ago by apphp-snippets
This uses the timthumb script saved as sized.php in the theme directory
1 484 posted 9 years ago by bitsculptor
This script is a custom module to copy one field to another.
0 575 posted 9 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 605 posted 9 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 645 posted 9 years ago by apphp-snippets
In this post you will learn how to log errors in database in cakephp.
0 522 posted 9 years ago by kp32
Button that onclick with scroll to top of the page
0 487 posted 9 years ago by tucq88
This shortcode was tested with The Events Calendar version 3.3.1 Usage: [upcoming_events limit="6"]
0 490 posted 9 years ago by crypticsoft
http://bueltge.de/wordpress-feeds-deaktivieren/794/
1 533 posted 9 years ago by gabbo
[ Yii Framework ] Use this to redirect to previous page or last request URL
0 545 posted 9 years ago by tucq88
used ceil instead floor
0 472 posted 9 years ago by Balamir
The give link helps you to integrate the Amazon Simple Pay IPN to your web application.
0 412 posted 9 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 521 posted 9 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 514 posted 9 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 913 posted 9 years ago by CreativePunch
Generates a random string of a given length and character set.
0 446 posted 9 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 446 posted 9 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 493 posted 9 years ago by CreativePunch
Function to check existence of value in multidimensional array.
0 602 posted 9 years ago by Sadeveloper
1 ... 6 7 8 9 10 ... 148