Featured
-
How Regression Testing Detects Integral Errors In Business Processes
Humans are forever changing and evolving and so to
by kristina.rigina -
Get Display Banner Advertising Opportunity on FindNerd Platform
“Do you have a product or service that nee
by manoj.rawat -
Android O Released with Top 7 New Features for App Developers
Android was founded by Andy Rubin, Rich Miner, Nic
by sudhanshu.tripathi -
Top 5 Features That Make Laravel the Best PHP Framework for Development
Laravel is a free open source Web Framework of PHP
by abhishek.tiwari.458 -
Objective C or Swift - Which Technology to Learn for iOS Development?
Swift programming language is completely based on
by siddharth.sindhi
Tags
Checking the date entered is according to a predefined format or not ?
Checking the date entered by the user correct of not as according to a predefined format or not.
Example 1)
$format = 'd-m-Y';
$input = 'asasasawasa-sldjs';
$date = DateTime::createFromFormat($format, $input);
if($date)
echo '...
How to create profile url in cakephp?
Hello readers !
Few days back I was facing issue to make public profile page in cakephp. And want to hide controller and action name from url for this I used the below code in routes.php and its work fine.
Router::connect(
'/:usernam...
Difference between array_slice() and array_splice()
**array_slice() Vs array_splice()**
What arrayslice() function do: As name suggest this function just return part/slice of array which we pass to arrayslice() function as parameter 1 depending u...
Login either Username or Email using Authentication Plugin in Joomla
With the help of this Plugin user can login either with email or username . This plugin is compatible with Joomla 1.5, Joomla 2.5 and Joomla 3.1 .
How to install
Login to Joomla Administrator.
Install with Joomla installer
Proceed to y...
PHP array to JavaScript array conversion
Sometimes, I feel a need to get a PHP array in my JavaScript code. Earlier I make use of implode function of php but recently found new way using json_encode that works very effectively.
Here is my php array:
<?php
$cool_epl_clubs_php =...
Sending xml data in post using curl
$xmldata ='
<mail>
<receive>you</receive>
<sender>Surit</sender>
<subject>Call me</subject>
<message>XYZ</message>
</mail>
';
$url = "your url";
$curlConn = curl_init($url)...
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...
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...