GetDotted Domains

Viewing Thread:
"PHP Images"

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.

Mon 22/07/02 at 13:58
Regular
Posts: 787
Eek, this is very hard even though i've only just started learning PHP anyway, I thought i'd give these puppies a little read over, they're darn clever, thing is, i can't get either gif filetypes to work or font's

$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? :)
Wed 28/08/02 at 18:08
Regular
"Chavez, just hush.."
Posts: 11,080
Ahhh, but my PHP script says 'good morning'!
Wed 28/08/02 at 16:21
Regular
"IT'S ALIVE!!"
Posts: 4,741
You only learn from testing things out, you have to start on the basics otherwise your head explodes although..in theory PHP is pretty simple but when I try something out it trys to make me pull my hair out.
Wed 28/08/02 at 14:34
Regular
Posts: 10,437
phi11ip wrote:
> 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
Wed 28/08/02 at 13:12
Regular
"Chavez, just hush.."
Posts: 11,080
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....
Wed 28/08/02 at 12:09
Regular
Posts: 10,437
I've started doing PHP images and I've i've a question for you lovely people. Can you make pieces of text links?

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.
Tue 23/07/02 at 10:39
Regular
"It goes so quickly"
Posts: 4,083
Its a good way of creating Graphs from RAW data, such as hits on a Web Site, a voting form or something to that effect.
Tue 23/07/02 at 09:06
Regular
"IT'S ALIVE!!"
Posts: 4,741
Well, i'd like to see one in action but I think they'd look pretty simple, then again i've only just started looking at this and i'm pretty sure someones probably spent ages designing some amazing..erm, button.
Mon 22/07/02 at 22:55
Posts: 0
Fog wrote:
> 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.
Mon 22/07/02 at 22:27
Regular
"IT'S ALIVE!!"
Posts: 4,741
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 :)
Mon 22/07/02 at 18:00
Regular
"Eff, you see, kay?"
Posts: 14,156
phpinfo() should tell you about TTF support.

Freeola & GetDotted are rated 5 Stars

Check out some of our customer reviews below:

The coolest ISP ever!
In my opinion, the ISP is the best I have ever used. They guarantee 'first time connection - everytime', which they have never let me down on.
Excellent support service!
I have always found the support staff to provide an excellent service on every occasion I've called.
Ben

View More Reviews

Need some help? Give us a call on 01376 55 60 60

Go to Support Centre

It appears you are using an old browser, as such, some parts of the Freeola and Getdotted site will not work as intended. Using the latest version of your browser, or another browser such as Google Chrome, Mozilla Firefox, or Opera will provide a better, safer browsing experience for you.