Tuesday, July 5, 2011

PHP as Personal Home Pages

Hypertext Pre-processor "PHP" was created by Rasmus Lerdorf in 1995. Rasmus Lerdorf is called PHP as Personal Home Pages it also called general-purpose scripting language is use for basically Development of dynamic website pages.
php
/*$imagecon=imagecreate(200,200);
$imageconcolor=imagecolorallocate($imagecon,0,193,224);
$imagedrcol=imagecolorallocate($imagecon,225,0,0);
imageellipse($imagecon,200,300,100,150,$imagedrcol);
imagearc($imagecon,100,100,100,150,0,90,$imagedrcol);
$mypoints=array(20,20,185,55,70,80);
imagepolygon ($imagecon,$mypoints,3,$imagedrcol);*/

$imagecon=imagecreatefromjpeg("vlogo.jpg");
//$imagecir=imagecreatefromjpeg("s.jpg");
//$white=imagecolorexact($imagecir,255,255,255);
//imagecolortransparent($imagecir,$white);
$deswidth=imagesx($imagecon);
$desheight=imagesy($imagecon);

$srcwidth=intval($deswidth/100);
$srcheight=intval($desheight/200);

$imagethumb=imagecreatetruecolor($srcwidth,$srcheight);
imagecopyresampled($imagethumb,$imagecon,0,0,0,0,$srcwidth,$srcheight,$deswidth,$desheight);

/*$desx=($deswidth-$srcwidth)/2;
$desy=($desheight-$srcheight)/2;imagecopy($imagecon,$imagecir,1000,500,10,0,$srcwidth,$srcheight);*/

header("Content-type:image/jpeg");
header("Content-type:image/gif");
imagejpeg($imagecon);
imagedestroy($imagecon);
?>

1 comment:

  1. it was a wonderful chance to visit this kind of site and I am happy to know. thank you so much for giving us a chance to have this opportunity.. https://jsongrid.com/json-formatter

    ReplyDelete