<?php
$destination_image = imagecreatefromgif('image.gif');
$size_of_text = 14;
$angle_of_text = 0;
$x_axis_of_text = 15;
$y_axis_of_text = 10;
$colour_of_text = imagecolorallocate($im, 0, 0, 0);
$font_of_text = "font.ttf";
$actual_text = "string of text here";
imagettftext($destination_image, $size_of_text, $angle_of_text, $x_axis_of_text, $y_axis_of_text, $colour_of_text, $font_of_text, $actual_text);
//*show image *//
?>
Conrad11 said:Yes its possible using the imagettftext function...
You have to link the font directly.
Example:
Code:<?php $destination_image = imagecreatefromgif('image.gif'); $size_of_text = 14; $angle_of_text = 0; $x_axis_of_text = 15; $y_axis_of_text = 10; $colour_of_text = imagecolorallocate($im, 0, 0, 0); $font_of_text = "font.ttf"; $actual_text = "string of text here"; imagettftext($destination_image, $size_of_text, $angle_of_text, $x_axis_of_text, $y_axis_of_text, $colour_of_text, $font_of_text, $actual_text); //*show image *// ?>
Beansprout said:That sounds like a really, really, really insecure idea :very bad: o.O![]()
:alarm:
Conrad11 said:Sorry if i have got this worng from your explaination....but coulnd't people just open the gif to see the user details?
"The main site has the ability to alter any files on the client sites"toastyman said:Why?
Beansprout said:Ok, I'll spell it out. You don't really want the ability to alter any files anywhere, do you? Because that means...
The script must have some sort of "accept and execute this remote command" ability but ok, it only works from your server right? What if the server's DNS was poisoned so it accepted the commands from, say Russia instead?
Or - even worse - if your systems got broken into. Hello, botnet![]()
In short it's a bad idea![]()