Where am I supposed to put the FPDF folder in relation to my wwwroot or Apache folder? I’m assuming I just put it in my wwwroot folder, but I don’t know if that’s right.
And in install.txt, it says:
Here is an example defining FPDF_FONTPATH (note the mandatory final slash):
With what do I replace “/home/www/font/”? I know that the names “home” and “www” have pretty obvious implications, but I really suck at installing stuff and I kind of need it spelled out for me.
Since it’s a pure PHP package, tt doesn’t really matter where you install it as long as the include() statements in your scripts match the path to it. You need to change the font path to wherever the fonts are kept on your server.
I just installed this package myself. (Thanks for the link!) Apparently the FPDF_FONTPATH in question is the path to some PHP font metric files included in the package and not to a folder containing actual fonts. When you unzip the package (just make a folder named /home/www/FPDF and unzip it there), a folder called /home/www/FPDF/font will be created. That’s what you need to set FPDF_FONTPATH to (add the final slash).