fONT MISSED

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Perfidus
Forum Contributor
Posts: 114
Joined: Sun Nov 02, 2003 9:54 pm

fONT MISSED

Post 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!!
Post Reply