Page 1 of 1

fONT MISSED

Posted: Wed Apr 14, 2004 6:20 pm
by Perfidus
I'm trying to point the PHP to a certain font, but it doesn't find it, the way I'm doing the things is as follows:


PHP:
--------------------------------------------------------------------------------

$font_file = $_SERVER[DOCUMENT_ROOT]."/images/fonts/verdana.ttf";

--------------------------------------------------------------------------------


What can be wrong?
If I echo the root, it brings me the following:
/home/chs/myweb.com/home/html
I have also tried like this:

PHP:
--------------------------------------------------------------------------------

$font_file = /home/chs/myweb.com/home/html/images/fonts/verdana.ttf";

--------------------------------------------------------------------------------



iT DOESN'T WORK NEITHER!!