chunkII123
IS-IT--Management
Here is my issue, and I have scoured the internet all weekend trying to find the answer to my question -
I currently have about 114 websites on a shared hosting account via GoDaddy. They have PHP unlocked for any use - so on and so forth. What I am trying to do is this: Create the images on the various pages from a common folder, however the issue that I am having is setting the directory correctly to allow the font files to be loaded from said "common" folder. I have tried:
but that didn't work. I also tried:
Again, that didn't work. I'm currently at a loss for how to point the $fontpath to the right location. Is it possible to have the fonts reside on a different server? Or am I stuck uploading 114 copies of the same font to the differing site folders? Thank you everyone ahead of time!
Server specs:
Linux Hosting,
PHP v5.5,
GD v 2.3,
permissions set on everything to 775.
*the actual website name and font were removed for anonymity.
Beware of hackers bearing executables. Happy Hunting. 'irc.2600.net'
I currently have about 114 websites on a shared hosting account via GoDaddy. They have PHP unlocked for any use - so on and so forth. What I am trying to do is this: Create the images on the various pages from a common folder, however the issue that I am having is setting the directory correctly to allow the font files to be loaded from said "common" folder. I have tried:
Code:
putenv('GDFONTPATH = '.$fontpath);
$fontpath = realpath($_SERVER['[URL unfurl="true"]http://www."xxxxx"*.com/common/fonts/"font"*.ttf'[/URL]]);
but that didn't work. I also tried:
Code:
$font = '[URL unfurl="true"]http://www."xxxxx"*.com/common/fonts/"font"*.ttf'[/URL]
Again, that didn't work. I'm currently at a loss for how to point the $fontpath to the right location. Is it possible to have the fonts reside on a different server? Or am I stuck uploading 114 copies of the same font to the differing site folders? Thank you everyone ahead of time!
Server specs:
Linux Hosting,
PHP v5.5,
GD v 2.3,
permissions set on everything to 775.
*the actual website name and font were removed for anonymity.
Beware of hackers bearing executables. Happy Hunting. 'irc.2600.net'