The "Freeola Customer Forum" forum, which includes Retro Game Reviews, has been archived and is now read-only. You cannot post here or create a new thread or review on this forum.
$font = "usr/local/jdk121_pre-v1/ jre/lib/fonts/VerdanaRegular.ttf";
(spaces)
*later o in the script*
imagettftext( $image, 50, 0, 20, 100, $blue, $font, "Welcome!" );
This doesn't seem to work, not only does it say "no gif support" but when I change it to jpeg (which works) it says theres no ttf support, so no font :)
My next problem is, now i'm using jpeg's instead of Gifs, it has the lower quality mess.
http://www.enterthefog.co.uk/reserve/fog3.php
as found on most jpeg images when not kept at a good quality (look around the edges)
can someone help please? :)
> The one reason why frontpage is good!
>
> I'd probably die from confusion if I tried PHP!
>
> Still I'm learning from it!
>
> I made a variable the other day that said different things at
> different times of the day!
>
> Arn't I clever!?
>
> 'No'
>
> Oh....
Well done :-) It's good doing things so at different times of the day different things happen. I've seen a JS script that makes the backgrounmd a different color everyday, very naff. :-D
I'd probably die from confusion if I tried PHP!
Still I'm learning from it!
I made a variable the other day that said different things at different times of the day!
Arn't I clever!?
'No'
Oh....
Here's the code I'm using at the moment for apractice image:
header("Content-type: image/png");
$im = ImageCreate(500, 100);
$red = ImageColorAllocate($im, 255, 0, 0);
$white = ImageColorAllocate($im, 255, 255, 255);
ImageFilledRectangle($im, 5, 10, 60, 14, $red);
ImageString($im, 250, 190, 45, "Image in PHP!", $white);
ImageString($im, 250, 20, 15, "Home", $white);
ImageString($im, 250, 120, 15, "Links", $white);
ImageString($im, 250, 220, 15, "Reviews", $white);
ImageString($im, 250, 320, 15, "Previews", $white);
ImageString($im, 250, 420, 15, "Contact", $white);
ImageString($im, 250, 20, 70, "Reload", $white);
ImageString($im, 250, 230, 70, "Print", $white);
ImageString($im, 250, 430, 70, "Back", $white);
ImagePng ($im);
ImageDestroy($im); #Free Memory
?>
I tried doing $url = 'http://bllahblah.com' then in the ImageString() i put $url, obviously it didn't work, anyone know if this is possible? :-)
Cheers.
> It doesn't seem to want to write anything, i'll keep on at it though,
> making images out of php is really cool, not that I can think of many
> uses for it.
> Some people make buttons..etc from it..I can't see why they'd want to
> write so much source just for a button :)
Coz then you can create entire menus dynamically, e.g.:
and if you want to change the background of a button, you only have to change one instance of it. If you want to add a button, you just add the source above. makes it easy to use on big menus.
Some people make buttons..etc from it..I can't see why they'd want to write so much source just for a button :)