Jump to content

PHP and GD


maxim

Recommended Posts

Hi,

i made a small script which reads a HTML file and stores some text from it. It then outputs that text onto a image.

i tested the script on my local apache server with PHP Version 5.1.2. heres is a copy of the final result.

[img src=\"http://maximhome.no-ip.org/images/local.png\" border=\"0\" alt=\"IPB Image\" /]

here is a copy of the exact same script running on my remote web server using PHP Version 4.4.2

[img src=\"http://maximhome.no-ip.org/images/remote.png\" border=\"0\" alt=\"IPB Image\" /]

there is a obvious diffrence between images. its the text output. on the remote web server is
displayed much better with even spacing between letters in the text.

any ideas on why this is happening. my guess is its the diffrent version of eith PHP or GD on the diffrent servers
what do you guys/girls think ?

the dynamic version of the image can be foun here [a href=\"http://maximhome.no-ip.org/picture.html\" target=\"_blank\"]http://maximhome.no-ip.org/picture.html[/a]
Link to comment
Share on other sites

the font comes from a file that is located in the same directory as the script.

those images should work...

as i alrady stated mt PHP version my GD versions are as follows

local server =GD Version 2.0 or higher

remote server = GD Version bundled (2.0.28 compatible)
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.