|
Displaying 1 - 50 of about 11195 Related Tutorials.
|
PHP GD Get System IP
<?php
$image = imagecreatetruecolor(150,70);
$ip = "$_SERVER[REMOTE_ADDR]";
imagestring($image,
10, 20,
36, $ip,
0x00ff00);
header... running the program you will get the following output |
PHP Get Browser IP Address
PHP Get Browser IP Address
PHP provides us $_SERVER['REMOTE_ADDR'] function is used to display the Browser IP address
PHP Get IP Address Code:
<?php
echo "My Browser IP is :". $_SERVER['REMOTE_ADDR'];
?> |
PHP GD get gd information
<?php
echo '<pre> ';
print_r(gd_info());
echo '</pre> ';
?>
After running the program you will get the following output
Array
(
[GD Version] => bundled (2.0.34 compatible)
[FreeType Support |
|
|
Get System Ip
Get System Ip
The System IP address is a unique numerical identification... be
same as it would rise to IP conflict in a System.
Understand with Example |
how to get an lan system ip and mac address in java code
how to get an lan system ip and mac address in java code strong text |
|
|
About PHP GD
What is PHP GD Library
GD: The GD graphics library is a developed by Thomas..., PHP,
Tcl, Lua, REXX, Ruby etc.
The GD library is used to create...' and wrappers are available for Perl, PHP and
other languages. GD can create images |
PHP GD imagesy
<?php
$img = imagecreatetruecolor(300,
200);
echo imagesy($img);
?>
After running the program you will get the following output
OUTPUT:200 |
PHP GD get image dimensions
<?php
if($img
= @GetImageSize("images.jpg"))
{
echo "image exists ,
here is some info<br>";
echo "width = $img... the program you will get the following output
OUTPUT :image exists , here is some |
PHP GD Library, PHP GD Tutorial
, resize, crop image on the fly.
In this section you will learn PHP GD Library in detail. Let?s get start with the PHP GD Library...The PHP GD Library is one of the most used image-processing libraries used |
About PHP GD Arc
PHP GD arc Function
<?php
$img = imagecreate(200, 200);
$red = imagecolorallocate($img, 255, 0, 0);
$black = imagecolorallocate($img, 0, 0, 0); ... the program you will get the following output |
PHP GD xpm
<?php
if(!(imagetypes() & IMG_XPM))
{
die('Support
for xpm was not found!');
}
$xpm = imagecreatefromxpm('./example.xpm');
imagejpeg($im... you will get the following output
OUTPUT :Support for xpm was not found |
PHP GD captcha
<?php
session_start();
class CaptchaSecurityImages {
var $font...
initialize new GD image stream');
$background_color =
imagecolorallocate($image...;
}
}
$width = isset($_GET['width'])
&& $_GET['width']
< 600 |
Getting IP Address
Getting IP Address Hi... i want to get the ip address of the current... other system if i run my jsp program using my ip like
172.16.11.247/myfile.jsp i get the ip address 247 in database but i need to get the ip address |
Getting IP Address
Getting IP Address Hi... i want to get the ip address of the current... other system if i run my jsp program using my ip like
172.16.11.247/myfile.jsp i get the ip address 247 in database but i need to get the ip address |
PHP GD image set pixel
<?php
$x = 200;
$y = 200;
$gd = imagecreatetruecolor($x,
$y...; 190);
$red = imagecolorallocate($gd,
255, 255,
255);
for ($i
= 0;
$i < 100000;
$i++) {
imagesetpixel($gd,
round($x),round($y),
$red |
PHP GD imagesx
<?php
$img = imagecreatetruecolor(300,
200);
echo imagesx($img);
?>
After running the program you will get the following output
OUTPUT :300 |
PHP GD crop image
<?php
$src = imagecreatefromjpeg('image1.jpg');
$dest = imagecreatetruecolor(80,
40);
imagecopy($dest,
$src, 0,
0, 20,
13, 80,
40);
header...);
imagedestroy($src);
?>
After running the program you will get the following output |
PHP GD Hue an Image
<?php
$im = imagecreatefromJPEG('images.jpg');
echo 'Hue white&
black:' . imagecolorclosesthwb($im,
116, 115,
152);
imagedestroy($im);
?>
After running the program you will get the following output
OUTPUT:Hue |
PHP GD rotate image
<?php
$image = 'images.jpg';
$degrees = 180;
header('Content-type:
image/jpeg') ;
$source = imagecreatefromjpeg($image)
;
$rotate... the program you will get the following output |
PHP GD font size
<?php
header ("Content-type:
image/png");
$handle = ImageCreate (130,
50) or die
("Cannot Create
image");
$bg_color...;
After running the program you will get the following output |
PHP GD filters
<?php
try{
if(!$image=imagecreatefromjpeg('images.jpg')){
throw new Exception('Error
creating image');
}
if(!imagefilter($image,IMG_FILTER...;
After running the program you will get the following output |
PHP GD fill image
<?php
$im = imagecreatetruecolor(55,
30);
$white = imagecolorallocate($im,
255, 255,
255);
imagefilledrectangle($im,
4, 4,
50, 25,
$white... running the program you will get the following output
output: Image filled |
PHP GD Merge Image
<?php
$backgroundSource = "merge.jpg";
$feedBurnerStatsSource = "images.jpg";
$outputImage = imagecreatefromjpeg... the program you will get the following output |
PHP GD image convolution
<?php
$image = imagecreatefromjpeg('images.jpg');
$emboss = array(array(2,
0, 0),
array(0,
-1, 0),
array(0,
0, -1));
imageconvolution($image...,
null, 9);
?>
After running the program you will get the following output |
PHP GD imagettfbox
<?php
$im = imagecreatetruecolor(300,
150);
$black...';
$bbox = imagettfbbox(10,
45, $font,
'PHP version ' .
phpversion...,
$black, $font,
'PHP version ' .
phpversion());
$bbox = imagettfbbox(10 |
PHP GD bold text
<?php
header('Content-type:
image/png');
$image = imagecreatetruecolor(400,
30);
$red = imagecolorallocate($image,
255, 0,
0);
$grey... running the program you will get the following output |
PHP GD draw text
<?php
header('Content-type:
image/png');
$im = imagecreatetruecolor(400,
30);
$white = imagecolorallocate($im,
255, 255,
255);
$grey... the program you will get the following output |
PHP GD imagettftext
<?php
header('Content-type:
image/png');
$im = imagecreatetruecolor(400,
30);
$white = imagecolorallocate($im,
255, 255,
255);
$grey... the program you will get the following output |
PHP GD image filter
<?php
$logo1 = imagecreatefromjpeg('images.jpg');
$logo2 = imagecreatefromjpeg('images.jpg');
$output = imagecreatetruecolor(imagesx($logo1)
* 2... you will get the following output |
PHP GD circle
<?php
$text =
"RoseindiaRoseindiaRoseindiaRoseindiaRoseindia
";
$image =
imagecreatetruecolor(400,400);
$white =
imagecolorallocate...);
?>
After running the program you will get the following output |
PHP GD Draw Rectangle
<?php
header("Content-type:
image/jpeg");
$width = 350;
$height = 360;
$im = ImageCreateTrueColor($width,
$height...;
After running the program you will get the following output |
PHP GD graphics
<?php
$img = imagecreate(250,80);
$black = imagecolorallocate($img,
0, 0,
0);
$white = imagecolorallocate($img,
255, 255,
255);
$red... the program you will get the following output |
PHP GD Grayscale
<?php
$file = 'images.jpg';
header('Content-type:
image/jpeg');
list($width,
$height) =
getimagesize($file);
$source = imagecreatefromjpeg...;
After running the program you will get the following output |
PHP GD art
<?php
$width=200;
$height=200;
Header("Content-type:
image/jpeg");
$im =
imagecreate($width,$height);
$white=ImageColorAllocate... will get the following output |
PHP GD line graph
<?php
header("Content-type:
image/png");
$arrval = array(12,123,21,32,77,85,166,176,163,121);
$height = 260;
$width = 330;
$im... running the program you will get the following output |
PHP GD add text to image
PHP GD Add Text to Image Example
<?php
header ("Content-type:
image/jpeg");
$string = "This
is my text";
$font = 4...);
?>
After running the program you will get the following output |
PHP GD Create Thumbnail
<?php
$i =
new imagethumbnail();
$i->open("index.jpg");
$i->setX(100);
header("Content-type:
image/jpeg;");
$i->... the program you will get the following output |
PHP GD Punch
<?php
$image =
imagecreatefromjpeg("images.jpg");
$displacement =
displacement($image);
$image =
imagedisplace($image,$displacement...($temp);
return $i;
}
?>
After running the program you will get |
PHP GD imagesetbrush() Function
<?php
$php =
imagecreatefromjpeg('im.jpg');
$im...);
imagefilledrectangle($im,
0, 0,
299, 99,
$white);
imagesetbrush($im,
$php);
imageline...');
imagejpeg($im);
imagedestroy($im);
imagedestroy($php);
?>
After |
PHP GD Captcha Refersh
index.php
<?php
session_start();
if(isset($_POST['submit_x'])
&...;title>Captcha</title>
</head>
<body>
<?php...;<?php
echo $_SERVER['PHP_SELF'];
?>" method="post" |
php gd background color
<?php
header("Content-type:
image/png");
$width = 350;
$height = 360;
$im =
ImageCreateTrueColor($width,
$height);
$red... will get the following output |
PHP GD Colorization of image
<?php
$im = imagecreatefromjpeg('images.jpg');
if($im
&& imagefilter($im,
IMG_FILTER_COLORIZE, 0,
255, 0))
{
echo 'Image
successfully... will get the following output |
PHP GD copy of image
<?php
$src = imagecreatefromjpeg('images.jpg');
$dest = imagecreatetruecolor(80,
40);
imagecopy($dest,
$src, 0,
0, 20,
13, 80,
40);
header...);
imagedestroy($src);
?>
After running the program you will get the following |
Get GMT from IP
Get GMT from IP How do I get GMT value from IP address??
Thanx in Adv |
Java example program to get IP address of own system
Java example program to get IP address of own system
java get own IP address
An IP...
the computer system's local host with IP address. Now we can get the IP address |
PHP GD Progress Bar
<?php
header("Content-type:
image/jpeg");
$current = isset($_GET['c'])
? $_GET['c']
: 50;
$start = isset($_GET['s'])
? $_GET['s']
: 0;
$end = isset($_GET['e'])
? $_GET['e']
: 100;
$p = isset($_GET['p |
php gd blur
<?php
$image = imagecreatetruecolor(225,225);
imagestring($image,
10, 20,
16, 'Roseindia',
0x00ff00);
$gaussian = array(array(1.0,
2.0, 1.0... running the program you will get the following output |
PHP GD draw line
<?php
header ("Content-type:
image/jpeg");
$handle = ImageCreate (130,
50) or die
("Cannot Create
image");
$bg_color...);
?>
After running the program you will get the following output |
PHP GD dashed line
<?php
header("Content-type:
image/png");
$width =
350;
$height =
360;
$im = ImageCreateTrueColor($width,
$height);
ImageAntiAlias... running the program you will get the following output |
PHP GD imagecopyresampled
<?php
$filename = 'image1.jpg';
$percent = 0.2;
header('Content-type:
image/jpeg');
list($width,
$height) =
getimagesize($filename...;
After running the program you will get the following output |