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);
?>

Integrating Google reCAPTCHA v3 in HTML Form with PHP

  What is Google reCAPTCHA v3? Google reCAPTCHA is a free service that helps protect websites from spam and abuse. reCAPTCHA v3 is the lates...