Welcome To Snipplr
Everyone's Recent Snippets
- All /
- JavaScript /
- HTML /
- PHP /
- CSS /
- Ruby /
- Objective C
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
1044
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
1083
posted 10 years ago by apphp-snippets
In this post you will learn how to log errors in database in cakephp.
0
903
posted 10 years ago by kp32
This technical tip shows how each TIFF frame can be converted to JPEG and then these images to PDF file using Aspose.Pdf for Java. Aspose.Pdf for Java is very well capable of dealing with TIFF images and can easily transform them into PDF format. How...
0
1606
posted 10 years ago by johansonkatherine
This shortcode was tested with The Events Calendar version 3.3.1
Usage: [upcoming_events limit="6"]
0
905
posted 10 years ago by crypticsoft
I found this script and tried it. It worked. I thought it was useful for a variety of situations and is easy to follow.
Often times I need nearly duplicated data and don't want to manually cut and paste.
0
1013
posted 10 years ago by donkeykong
[ Yii Framework ] Use this to redirect to previous page or last request URL
0
935
posted 10 years ago by tucq88
The give link helps you to integrate the Amazon Simple Pay IPN to your web application.
0
693
posted 10 years ago by mafhh14
Surprisingly often I want to print all the values of some object for debugging reasons, and if the object has a lot of different get methods (and toString is not good for this), it is a pain to write all the print commands. That's when this snippet i...
0
1081
posted 10 years ago by mcaordie
Implementacija binarnog stabla pomoću funkcija koristeći pokazivaÄe.
0
684
posted 10 years ago by AOT_code
In this article I will show you how to use AngularJS and Laravel Blade together.
People who have been using AngularJS for a while may know of this solution. However if you are just getting started or have never used Angular with a templating engine...
0
1113
posted 10 years ago by CreativePunch
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
933
posted 10 years ago by motp
Example:
CREATE SCHEMA `db_wordpress_02` ;
GRANT ALL PRIVILEGES ON db_wordpress_02.* to 'root'@'localhost' IDENTIFIED BY 'scr1ptlov3r';
1
847
posted 10 years ago by ampt
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
823
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
1485
posted 10 years ago by CreativePunch
Generates a random string of a given length and character set.
0
787
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
767
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
795
posted 10 years ago by CreativePunch
Function to check existence of value in multidimensional array.
0
931
posted 10 years ago by Sadeveloper