In this article, Apache2 and PHP5 assumed has been installed and running well.
The following lines are the installation steps.
- Please login as “root” or equivalent for installing.
~# apt-get install php-fpdf
- If the installation is successful, there will be a file “fpdf.php” in the following folder.
~# ls -l /usr/share/php/fpdf
- Please create a symbolic link is directed at each site are available on your web server with the following way.
e.g.
~# ln -s /usr/share/php/fpdf /var/www/fpdf
- Reload your web server.
~# /etc/init.d/apache2 force-reload
- Make sure the PHP commands on the web page associated with the conversion to PDF function like this.
<?php require('fpdf/fpdf.php'); ?>
- Finish.
December 31, 2010 at 2:43 AM
Exactly what i was looking for thank you!
January 29, 2011 at 1:27 AM
Perfect, thanks for the instructions! -Ryan and Kyle
January 30, 2011 at 10:05 PM
awsome post! very useful
May 10, 2012 at 8:51 PM
ok, worked perfectly thx.
June 29, 2012 at 5:12 PM
Exactly what i was looking for thank you!
April 11, 2013 at 9:09 AM
Thanks worked perfectly!!
June 28, 2013 at 4:58 PM
Thank you