FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » More with imagettfbbox(); absolute url not working?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: More with imagettfbbox(); absolute url not working? [message #173376 is a reply to message #173373] Tue, 05 April 2011 21:01 Go to previous message
jwcarlton is currently offline  jwcarlton
Messages: 76
Registered: December 2010
Karma:
Member
> Use $home=$_SERVER['DOCUMENT_ROOT'];
>
> This will set $home to the root directory of your web server on the
> disk.  You can now access your file with:
>
> $f_font = "$home/arialbd.ttf";

I snipped a bunch here for the sake of brevity, but you guys nailed
it! Using the document_root path solved the issue.

Thanks, guys :-)
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: OpenSSL support => disabled (install ext/openssl)
Next Topic: How to test if .php is using FastCGI?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 27 07:51:34 GMT 2024

Total time taken to generate the page: 0.04307 seconds