473,479 Members | 2,115 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

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?!?!
Mar 4 '06 #1
3 1653
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...
Mar 4 '06 #2
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-

Mar 4 '06 #3
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...
Mar 4 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
9128
by: bof | last post by:
I'm attempting to use ImageTTFText to render text to an image, I can get it to work if I a) specify the full font path b) switch off anti-aliasing c) specify an OpenType font (e.g. arial.ttf) ...
0
2119
by: John Wellesz | last post by:
Hi, since I've upgraded to php 4.3.4 (before I used 4.1.2) I have a problem with imagettftext(): when executing the line: imagettftext($im, 20, 0, 10, 25, $white, "$script_dir/verdana.ttf",...
3
4389
by: Leif Wessman | last post by:
From: http://www.php.net/manual/en/function.imagettftext.php "color is the color index. Using the negative of a color index has the effect of turning off antialiasing." I'm using a bundled...
1
4229
by: Axier | last post by:
I cannot get the swedish character set on images. What can be wrong? I would very much appreciate help. regards, axier I can supply some code here and a link:...
3
1653
by: jhill | last post by:
i have a vb asp.net application that has been working fine for a week. if on the server box i type http://localhost/theapp, everything comes up just fine i've been continually developing. now,...
4
3288
by: mkadlec99 | last post by:
Got a remoting question I was hoping someone could solve. I have an object (UpdateFlifo) that has two constructors, one empty, and one with arguments. I want to expose this object remotely,...
11
5628
by: blickensdoerfer | last post by:
i have a problem using ImageTTFText: I want a Text in Arial , 8pt, without Anti-Aliasing . The result is very ugly, how can i get it proper like it would be displayed in the browser window or...
6
5051
by: Bob Altman | last post by:
Hi all, This is a long shot, but I figure it doesn't hurt to ask... I have some applications that work fine when I run them on my PC at work, but "fail to initialize (0x000005)" when I'm...
7
16762
by: kip1790 | last post by:
I created an existing sample that writes input text to a background image no problem. See here. I attempted to use a font using Imagettftext () following the steps outlined here, however I can't...
0
6899
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7067
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6719
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6847
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5312
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4463
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
2980
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2970
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1288
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.