Solved

php and jpgraph problem

Posted on 2004-04-01
4
493 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
ID: 10841135
try compiling the program as root
0
 
LVL 6

Assisted Solution

by:aolXFT
aolXFT earned 250 total points
ID: 10907930
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article will explain how to display the first page of your Microsoft Word documents (e.g. .doc, .docx, etc...) as images in a web page programatically. I have scoured the web on a way to do this unsuccessfully. The goal is to produce something …
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …

809 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