imagettftext failing in remote browsers?

This is a discussion on imagettftext failing in remote browsers? within the PHP Language forums, part of the PHP Programming Forums category; I'm not real sure how the drawing & image fxns work in php, so please bear with me... I'...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 03-04-2006
Matt
 
Posts: n/a
Default imagettftext failing in remote browsers?

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?!?!
Reply With Quote
  #2 (permalink)  
Old 03-04-2006
Matt
 
Posts: n/a
Default more (unusual) info

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...
Reply With Quote
  #3 (permalink)  
Old 03-04-2006
David Haynes
 
Posts: n/a
Default Re: more (unusual) info

Matt wrote:
> 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...

Any chance of a firewall getting in the way thinking this is a popup?

-david-

Reply With Quote
  #4 (permalink)  
Old 03-04-2006
Matt
 
Posts: n/a
Default Re: more (unusual) info

David Haynes wrote:
> Matt wrote:
>
>> 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...

>
> Any chance of a firewall getting in the way thinking this is a popup?
>
> -david-
>


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...
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 12:11 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0