Join the social network of Tech Nerds, increase skill rank, get work, manage projects...
 

Generate and Download CSV file using array - php

Yesterday i was searching about how to generate and download csv file in php script using array, i google it and found lots of code there but nothing was working according to my requirement then developed this code. Feel free to let me know if yo...

Features for an e-Commerce Online Store

What is an e-Commerce? e-Commerce is doing business online and electronically. e-Commerce is about buying and selling products and services on the Internet. The sellers are individuals, small businesses or large corporations. The buyers are...

How to convert elements of array into comma separated string - PHP

Let's say you have an array of countries and you need comma separated values of 'countries'. Countries Array : $countries = array("India","USA","UK"); To convert array elements into comma separated string, use this php inbuilt function c...

Cakephp - Removing setFlash bar

We can get rid of the flash message shown on a webpage in cakephp using setFlash method without refreshing the page by the help of simple Jquery function. flashMessage is the default html id used by the cakephp while showing flash message. ...

Copy image into amazon S3

Here is the small steps to upload images or any file into amazon S3 server:- <?php define('awsAccessKey', 'AKIAJMEIK5LU3NAR3BTQ'); define('awsSecretKey', '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'); function copyImagetoAma...

pagination in core PHP

**When there are a sufficient number of pages present, a Last Page link is added. When you navigate away from the first page, a previous page link is added. When you navigate past the second page, a first page link is added. This code hasn't b...

Using Auth method for login in cakephp

First of all load the component in the controller lets say UsersController using the below code $this->uses=array(Auth); login.view: <?php echo $this->Form->create('User', array('id'=>'signUpForm','name'=>'userSignu...

Date/Time Operations in php

Sometime there is a need to perform different operation on dates for ex: You may need to : 1) Add two dates/time 2) Subtract two dates/times for ex- to calculate your age by deducting your date of birth from current date. And many m...

Formatting time

Some time you may need to find the day, hour and min and seconds for ex: *you entered a number 105 and you want 1h-45Min ago* then you can simply use the following function although you can use your custom function as well depends on the...

Decomposing the associative array in chunks based on their keys

Consider you have two arrays like the below: 1) $arr1 = Array ( [0] => 2 [1] => 2 [2] => 2 [3] => 3 [4] => 3 ) 2) $arr2 = Array ( [0] => 28 [1] => 48 [2] => 21 [3] ...

iphone and Android Push Notification API

Push notifications are messages that allow an app to notify of a message similar to how a text message pops up on your screen with a sound. Code for Android ,Iphone API push notification is given below by using urbanairship. 1.Android Push No...

PNG Image masking with rotation and alignment using Imagemagick

We can mask a png image over any other image with rotation and proper alignment. Let say for example, if we need to replace the human face of an image with another face, then we need this type of masking. There are various ways and command with...
1 42 44 next
Sign In
                           OR                           
                           OR                           
Register

Sign up using

                           OR                           
Forgot Password
Fill out the form below and instructions to reset your password will be emailed to you:
Reset Password
Fill out the form below and reset your password: