Wierd PHP and freetype problem

777php

Diamond Member
Jul 17, 2001
3,498
0
0
I compiled PHP with gd and freetype but when I try to run a scrupt calling upon PHP to write to a image using freetype I receive this error. I know my script works becuase I pulled the entire site from the production server to this test server and it worked fine previously. Any experiences with this problem?

Warning: Could not find/open font in ../path/to/font

The file pointer is accurate and font has full read/write access and is owned by apache.
 

RSMemphis

Golden Member
Oct 6, 2001
1,521
0
0
Warning: Could not find/open font in ../path/to/font

Sorry for asking the obvious, but is that the actual error message or did you replace the path with "/path/to/font".
If that is the actual error message, you need to configure the path.
If not, the question is if the path is correct or not.

Also make sure that the path has executable rights all the way for nobody or http (or whatever your daemon runs under).
 

777php

Diamond Member
Jul 17, 2001
3,498
0
0
It was strange, but all I did was went through each line of code that called the font and retyped the path in and now it seems to work. How buggy. :confused: