Click to See Complete Forum and Search --> : fONT MISSED


Perfidus
04-14-2004, 04:23 PM
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:
$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:
$font_file = /home/chs/myweb.com/home/html/images/fonts/verdana.ttf";

iT DOESN'T WORK NEITHER!!

Jona
04-14-2004, 04:25 PM
Try


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

Perfidus
04-14-2004, 06:19 PM
I forgot the slash on the transcription, but the problem is not there. I still have the same problem.

NEED HELP!!

Jona
04-14-2004, 10:51 PM
What should the echoed value be?