Solved

php and jpgraph problem

Posted on 2004-04-01
4
498 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
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…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…

707 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