Solved

php and jpgraph problem

Posted on 2004-04-01
4
489 Views
Last Modified: 2013-12-13
Hi

I just recompile php 3.4.3 on solaris 8 with no problem and it works, the problem comes when i tried to use jpgraph it says:

Font File
    "/usr/openwin/lib/X11/fonts/TrueType/times.ttf" is not readable or does not exist

I just looked and the file is there... this is mi configure line....

'./configure' '--with-nsapi=/usr/iplanet/servers' '--enable-libgcc' '--with-mysql=/usr/local/mysql' '--enable-bcmath' '--enable-calendar' '--with-gd' '--with-zlib' '--enable-gd-native-ttf' '--with-freetype-dir=/usr/local/include/freetype2' '--with-jpeg-dir=/usr/iplanet/servers/docs/jpeg'

and this is what phpinfo tell's me about gd

gd
GD Support  enabled  
GD Version  bundled (2.0.15 compatible)  
FreeType Support  enabled  
FreeType Linkage  with freetype  
GIF Read Support  enabled  
JPG Support  enabled  
PNG Support  enabled  
WBMP Support  enabled  
XBM Support  enabled  

Can someone tell me what's going on??

thanks
0
Comment
Question by:Alejandro_Lopez
4 Comments
 
LVL 2

Accepted Solution

by:
sudev_shetty earned 250 total points
Comment Utility
try compiling the program as root
0
 
LVL 6

Assisted Solution

by:aolXFT
aolXFT earned 250 total points
Comment Utility
php 3.4.3:
Are you serious? PHP 3? Why aren't you using PHP 4. PHP4 I believe has better OO support(for jpgraph is an OO Library)

It seems you have difficulty with the readability of a certain file. Make sure it is actually readable.

ls -l /usr/openwin/lib/X11/fonts/TrueType/times.ttf
0

Featured Post

How to improve team productivity

Quip adds documents, spreadsheets, and tasklists to your Slack experience
- Elevate ideas to Quip docs
- Share Quip docs in Slack
- Get notified of changes to your docs
- Available on iOS/Android/Desktop/Web
- Online/Offline

Join & Write a Comment

Introduction HTML checkboxes provide the perfect way for a web developer to receive client input when the client's options might be none, one or many.  But the PHP code for processing the checkboxes can be confusing at first.  What if a checkbox is…
These days socially coordinated efforts have turned into a critical requirement for enterprises.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now