![]() |
|
Help - Printable Version +- Sinisterly (https://sinister.li) +-- Forum: Coding (https://sinister.li/Forum-Coding) +--- Forum: PHP (https://sinister.li/Forum-PHP) +--- Thread: Help (/Thread-Help--59890) |
Help - FataL - 02-03-2015 Hey, I was wondering if there was a way using PHP, to render images dynamically that can contain live data. I'm not great with PHP, so for example saying in my signature, Hey I've reffered *Number of refferals* amount of people! by using my profile page and taking the refferal count from that page or from the database Thanks in Advance,
RE: Help - Master - 02-03-2015 Might be possible ask @phyrrus9 Also go to intro yourself in here. RE: Help - Sikom - 02-03-2015 If you find out how feel free to tell me RE: Help - Master - 02-03-2015 This is also a good place to start. https://sinister.li/Thread-New-members-read-here-before-posting RE: Help - Oni - 02-03-2015 An interesting idea. Might use it RE: Help - Sikom - 02-03-2015 (02-03-2015, 08:09 PM)Oni Wrote: An interesting idea. Might use it If You do please show me how
RE: Help - phyrrus9 - 02-04-2015 (02-03-2015, 04:42 PM)Master Wrote: Might be possible ask @phyrrus9 PHP isn't my specialty. But the GD library does that. PHP Code: <?php
// Create a blank image and add some text
$im = imagecreatetruecolor(120, 20);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
// Output the image
imagegd($im);
// Free up memory
imagedestroy($im);
?>Taken from here RE: Help - FataL - 02-04-2015 Thank you so much for this guys ^-^ RE: Help - Eclipse - 02-04-2015 It's definitely possible. I've seen images that display your IP to you. Ask @Reiko. RE: Help - Yani - 02-06-2015 It's perfectly possible, only thing that'll take some time will be to make the image look good. Here's a good link to get started: http://webcheatsheet.com/php/dynamic_image_generation.php |