Little HTML,Graphix,PHP help ? -
Ronaldo_raul™ - 06.11.2011
I have a PHP query that gives the information about any server but i want with picture. I mean same like the other server monitors do have ! if anyone can help me! please POST!
Link -
www.mortalgamming.volthttp.com/sampquery.php
Regards,
Ronaldo_raul™
Re: Little HTML,Graphix,PHP help ? -
Pinguinn - 06.11.2011
imagepstext
Re: Little HTML,Graphix,PHP help ? -
Ronaldo_raul™ - 06.11.2011
Quote:
Originally Posted by Pinguinn
|
I really cant figure it out

any code or something ?
Re: Little HTML,Graphix,PHP help ? -
Pinguinn - 06.11.2011
imagettftext
This one will be easier to use I guess
Re: Little HTML,Graphix,PHP help ? -
Ronaldo_raul™ - 06.11.2011
Quote:
Originally Posted by Pinguinn
|
Quote:
The font size. Depending on your version of GD, this should be specified as the pixel size (GD1) or point size (GD2).
|
what is GD1 and GD2...?
Its all out of my mind

can ya go through the link and give me a piece of code?
Re: Little HTML,Graphix,PHP help ? -
Pinguinn - 06.11.2011
PHP код:
imagettftext([image file], [text size], [text angle], [x (or width)], [y (or height)], [text color], [font file (.ttf)], [text]);
So for example, you want to write in the middle of the image with the text "Hello!", then this could be a possibility
PHP код:
$blank = imagecreatetruecolor(600, 600); # (width, height)
$black = imagecolorallocate($blank, 0, 0, 0); # (image, r, g, b)
imagettftext($blank, , 0, 600/2, 600/2, $black, 'arial.ttf', 'Hello!');
Re: Little HTML,Graphix,PHP help ? - XFlawless - 06.11.2011
About GD library.
PHP код:
<?php
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/button1.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
?>
Example from php web site.