You are here: imagettftext failing in remote browsers? « PHP Programming Language « IT news, forums, messages
imagettftext failing in remote browsers?

Posted by Matt on 11/04/26 11:41

I'm not real sure how the drawing & image fxns work in php, so please
bear with me...

I'm using a script (logo.php) to draw a simple logo -- basically text
with a shaded background. It looks great when I browse it at localhost
(a Fedora Core 3 box), but if I use another machine (Gentoo) on the
network, it says
"The image ...logo.php cannot be displayed, because it contains errors"

I can only get (part of) it to show by commenting out:
$pos = imagettftext($image,30,0,$x,$y,$shadow,$font, "NAME_OF_THE_SITE");

in all three places where it occurs. also involved are:
define(FONT_PATH,"/opt/lampp/htdocs/work/TND/misc/fonts/");
and
$font = FONT_PATH. "CopperplateGothicBold.ttf";

does that need to be installed (in that dir) on every machine that
accesses the image?!?!

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация