July 9, 2014

How To Return Two Value In Ajax Success And Split That?

You can used any sign or symbol between two value return like in ajax call file return echo $a.'###'.$b;

When its return value at ajax success funcation you can split that value.

$.ajax({
url: 'example.php',
type :'post',
data: 'val:val',
success: function(data){
//Split using youe symbol.
var arr=data.split('###');

//For first value $a.
alert(arr[0]);

//for second value $b.
alert(arr[1]);
}
});

July 4, 2014

Latest Version Of PHP

Latest version of is: 5.5.14

And you can download it from here: http://php.net/downloads.php

PHP How To Change The Image Size?

<?php
    $im=imagecreatetruecolor(800, 600);
    imagesavealpha($im, true);

    $trans_colour = imagecolorallocatealpha($im, 0, 0, 0, 127);
    imagefill($im, 0, 0, $trans_colour);
 
    $red = imagecolorallocate($im, 255, 0, 0);
    imagefilledellipse($im, 400, 300, 400, 300, $red);
 
    header("Content-type: image/png");
    imagepng($im);
?>

September 14, 2012

New iPhone 5 Mobile is Launch



The iPhone 5 comes in either white and silver or black and slate and to buy it outright in Australia costs $799 for the 16 gigabyte model, $899 for the 32 gigabyte model and $999 for the 64 gigabyte model. Apple said customers could pre-order from this Friday and mobile carriers are also taking pre-orders.

Not a shocker either, but the iPhone 5 will support 4G LTE networks. That's in addition to the current support for GPRS, EDGE, EV-DO, and HSPA data networks. LTE has a single chip for voice and data, a single radio chip, and a "dynamic antenna" that will switch connections between different networks automatically. 

The Future of Technology: Emerging Trends to Watch in 2025

Introduction As we navigate through 2025, the technological landscape continues to evolve at an unprecedented pace. Innovations that once se...