Jump to content


PHP and GD

  • Please log in to reply
4 replies to this topic

#1 maxim

  • Members
  • PipPipPip
  • Advanced Member
  • 48 posts

Posted 18 June 2006 - 02:42 PM


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]

#2 mark s

mark s
  • Members
  • PipPip
  • Member
  • 26 posts

Posted 18 June 2006 - 03:45 PM

I Cant see the images not displayed.
Link is also dead:(

#3 .josh

  • Staff Alumni
  • .josh
  • 14,871 posts

Posted 18 June 2006 - 04:36 PM

are you trying to use a specific font? possibly the server does not recognize the font and is using a default font. which would mean that on your local server it's not reading your specified font correctly. just a guess.
Did I help you? Feeling generous? Buy me lunch! 
Please, take the time and do some research and find out how much it would have cost you to get your help from a decent paid-for source. A "roll-of-the-dice" freelancer will charge you $5-$15/hr. A decent entry level freelancer will charge you around $15-30/hr. A professional will charge you anywhere from $50-$100/hr. An agency will charge anywhere from $100-$250/hr. Think about all this when soliciting for help here. Think about how much money you are making from the work you are asking for help on. No, we do not expect you to pay for the help given here, but donating a few bucks is a fraction of the cost of what you would have paid, shows your appreciation, helps motivate people to keep offering help without the pricetag, and helps make this a higher quality free-help community :)

#4 deadonarrival

  • Members
  • PipPipPip
  • Advanced Member
  • 284 posts

Posted 18 June 2006 - 04:46 PM

The font looks the same to me - what versions of PHP and GD are running on each server? Does the remote server use the more recent releases?
DO {
$this->time_warp("Jump to the left","Step to the right","Bend knees in time");
} WHILE (2>1)

Warning: The above post may not make a lot of sense, and the sentence structure will suck. I tend to ramble a lot. Sorry ;-)

#5 maxim

  • Members
  • PipPipPip
  • Advanced Member
  • 48 posts

Posted 18 June 2006 - 07:49 PM

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)

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users