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:
hmaster
Senior Member
****

Avatar

Posts: 716
Reputation: 24
33 / Male / Flag
Joined: Nov 2004
RE: [PHP] Dynamic image help
quote:
Originally posted by -dt-
:-/ why do you need fopen wrappers enabled to read from a localfile? .... fopen wrappers are what let you access urls like files. they dont disable local file reading.
woops my bad!

quote:
Originally posted by Luigi
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 :)
Try with the apostrophes $_GET['number']
[Image: sig.png]
02-01-2006 08:57 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