Connecting Tech Pros Worldwide Help | Site Map

imagettftext failing in remote browsers?

  #1  
Old March 4th, 2006, 09:25 PM
Matt
Guest
 
Posts: n/a
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?!?!
  #2  
Old March 4th, 2006, 09:25 PM
Matt
Guest
 
Posts: n/a

re: imagettftext failing in remote browsers?


I have the site installed on a beta server and when I access that (from
any machine), the *same image script displays fine.

that is,
www.______.org/.../.../logo.php
looks great
but
192.168.2.3/.../.../logo.php
has errors

Only fails on my LAN. odd...
  #3  
Old March 4th, 2006, 09:45 PM
David Haynes
Guest
 
Posts: n/a

re: imagettftext failing in remote browsers?


Matt wrote:[color=blue]
> I have the site installed on a beta server and when I access that (from
> any machine), the *same image script displays fine.
>
> that is,
> www.______.org/.../.../logo.php
> looks great
> but
> 192.168.2.3/.../.../logo.php
> has errors
>
> Only fails on my LAN. odd...[/color]
Any chance of a firewall getting in the way thinking this is a popup?

-david-

  #4  
Old March 4th, 2006, 09:55 PM
Matt
Guest
 
Posts: n/a

re: imagettftext failing in remote browsers?


David Haynes wrote:[color=blue]
> Matt wrote:
>[color=green]
>> I have the site installed on a beta server and when I access that
>> (from any machine), the *same image script displays fine.
>>
>> that is,
>> www.______.org/.../.../logo.php
>> looks great
>> but
>> 192.168.2.3/.../.../logo.php
>> has errors
>>
>> Only fails on my LAN. odd...[/color]
>
> Any chance of a firewall getting in the way thinking this is a popup?
>
> -david-
>[/color]

interesting thought. doesn't seem like it, since as I said I can access
the "beta" server. am accessing it with firefox v 1.0.6...

let me see if my friend can view it on the LAN...
Closed Thread