Welcome To Snipplr


Everyone's Recent PHP Snippets Tagged php



1 2 3 4 5 6 ... 58
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 3399 posted 12 years ago by apphp-snippets
http://bueltge.de/wordpress-feeds-deaktivieren/794/
1 2065 posted 12 years ago by gabbo
used ceil instead floor
0 2874 posted 12 years ago by Balamir
The give link helps you to integrate the Amazon Simple Pay IPN to your web application.
0 1693 posted 12 years ago by mafhh14
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 2045 posted 12 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 4042 posted 12 years ago by CreativePunch
Generates a random string of a given length and character set.
0 1898 posted 12 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 1842 posted 12 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 1924 posted 12 years ago by CreativePunch
Function to check existence of value in multidimensional array.
0 2004 posted 12 years ago by Sadeveloper
List of prime numbers between two number
0 2397 posted 12 years ago by Sadeveloper
Write request data to a log file
0 2207 posted 12 years ago by dmertl
Examine a date and return false if it's in the past, or true for the future. Slightly more complicated than it needs to be, however there's an easy tutorial with full explanation if you follow the attached link.
0 4432 posted 12 years ago by gromitski
I created myself an install file using PHP. What this file does is creates folders and puts in each folder the corresponding file from the zip. Afterwards these files are moved to other folders which are already created or will be created by the inst...
0 1494 posted 12 years ago by PLATANIUM
I created myself an install file using PHP. What this file does is creates folders and puts in each folder the corresponding file from the zip. Afterwards these files are moved to other folders which are already created or will be created by the inst...
0 1652 posted 12 years ago by PLATANIUM
Simple PHP functions to validate url, email address and ip, functions will return TRUE for valid data and FALSE for invalid data.
0 3647 posted 12 years ago by codingforever99
En Hosting Gratis, ellos ponen código de rastreo y publicidad anadiendolo en tus paginas webs, aveces estos códigos interfieren en consultas tipos webservice cuando el formato debe ser xml o json
0 2281 posted 12 years ago by thescorpion
A function to create passwords for new users or password resets.
0 1800 posted 12 years ago by luckygreentiger
An attempt for a semi-random salt in a stored password. It's not stored in the database so I believe it would be harder to discover. Samples should be changed.
0 1602 posted 12 years ago by luckygreentiger
Compact Privacy Policy allowing cookies to be used in an iframe without being blocked by the host website. See link for further details.
0 1900 posted 12 years ago by gromitski
Simple PHP Backdoor Shell // http://www.example.com/shell.php?cmd=dir
0 5068 posted 12 years ago by shopsplash
Truncates the given string at the specified length.
1 2110 posted 12 years ago by JoshChris
Bare outline for a PHPUnit test case
0 1571 posted 12 years ago by steroidmonkey
Covnerts an IP address to it's relative hex value.
0 5085 posted 13 years ago by martyncoup
Simple PHP functions to validate username, password and date, functions check the input format and allowed characters and then return TRUE for valid data and FALSE for invalid data.
0 5217 posted 13 years ago by codingforever99
<a href="http://pantuts.com/2013/10/24/ayeemtract-using-curl-parallel/">http://pantuts.com/2013/10/24/ayeemtract-using-curl-parallel/</a>
1 4019 posted 13 years ago by pantuts
How to build a login form using php with mysql database.
0 2154 posted 13 years ago by codingforever99
simple php file uploader with check for file extension and size.
0 3213 posted 13 years ago by codingforever99
Here's a country list with continent and country by country code!
0 3735 posted 13 years ago by kilise
By default Apache won't allow you to download a file over 2GB. This PHP script overcomes that along with some extra goodies. The script will read from standard url path the file on the server to download and display the filesize along with a link...
1 3517 posted 13 years ago by deanhouseholder
1 2 3 4 5 6 ... 58