Forum: Geek Forum Topic: PHP4 Graphics started by: psychopharmacologist Posted by psychopharmacologist on Jul. 19 2001,19:51
Does PHP4 generate Graphics on the fly?I got the following code from a tutorial at freeskills.com $image = ImageCreate(200,150); However when i try to run the script, php sez that none of the functions exist. And I'm pretty sure that php is installed and working fine, I've gotten it to do basic text stuff. Posted by incubus on Jul. 19 2001,20:15
are you sure you dont need modules or something?a bit like mrtg uses the gd module to make graphs and stuff? Posted by cr0bar on Jul. 19 2001,21:28
It's exactly that. You need to get gd and compile PHP --with-gd
Posted by RenegadeSnark on Jul. 19 2001,21:30
Or you could shell to the program "convert" from ImageMagick and do it like a real l33t hax0r does it.
Posted by psychopharmacologist on Jul. 20 2001,01:30
ahh, that makes sense... thanx.Not to seem helpless or anything, but where might i get this magical module? Posted by porn_dealer on Jul. 20 2001,01:51
When using ImageMagick w/ PHP, a sample app to draw text over an image might look like this:<?php // x/y coords of where to draw the text // -draw switch to pass to convert // original image to write text over: // font // write the header // align (Center, West, East, South, etc.) // text color // run /usr/local/bin/convert // done! ?> ------------------ Posted by porn_dealer on Jul. 20 2001,01:53
If you want VD--err GD, goto < www.boutell.org/gd/ > (i believe)
|