What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » [PHP] Dynamic image help

[PHP] Dynamic image help
Author: Message:
Luigi
Full Member
***

Avatar
It's-a me! Luigi!

Posts: 221
Reputation: 4
– / Male / Flag
Joined: Sep 2005
O.P. RE: [PHP] Dynamic image help
Thanks to all for the help, I've done something good, but now I'm blocked here.
blah.org/gne.php?number=1.txt
my php read the first line of the file 1.txt (that is the name of an image) and it SHOULD load that image and put it on the file, here's the code I used:
code:
$file = file($_GET[number]);
$ua = imagecreatefrompng($file[0]);
$uswidth = imagesx($ua);
$usheight = imagesy($ua);
imagecopy($im, $ua, 5, 2, 0, 0, $uswidth, $usheight);
(im is already defined)

but it doesn't return any image.
Is this because when it reads the first line, it gets image.png(return)?

And another problem I have, is that it doesn't show any text using the imagettftext, could it be because I'm loading 2 images ($im, and then $ua)?
code:
$font = "/wp-content/visitor.ttf";
$white = imagecolorallocate($im, 255, 255, 255);
imagettftext($im, 10, 0, 55, 5, $white, $font, 'blah blah blah');


Thanks :)
[Image: caffe.gif]
[Image: italia.jpg] StuffPlug-NG & A-Patch Official Italian Translator, Messenger Plus! Live Beta Tester.
www.barbagianni.net - http://www.messengeritalia.it
02-01-2006 07:47 PM
Profile PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
[PHP] Dynamic image help - by Luigi on 01-31-2006 at 06:48 PM
RE: [PHP] Dynamic image help - by L. Coyote on 01-31-2006 at 07:42 PM
RE: [PHP] Dynamic image help - by Luigi on 01-31-2006 at 07:46 PM
RE: [PHP] Dynamic image help - by hmaster on 01-31-2006 at 08:10 PM
RE: RE: [PHP] Dynamic image help - by Luigi on 01-31-2006 at 08:25 PM
RE: [PHP] Dynamic image help - by -dt- on 02-01-2006 at 02:00 AM
RE: [PHP] Dynamic image help - by Luigi on 02-01-2006 at 07:47 PM
RE: [PHP] Dynamic image help - by hmaster on 02-01-2006 at 08:57 PM
RE: [PHP] Dynamic image help - by Luigi on 02-02-2006 at 07:53 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On