Fpdf and how to upload/install it

Hi guys i need a little advise.

I am trying to implement FPDF so i can output some pdf files, however I am having some major issues implementing it. I have downloaded it, unzipped it and put it in my htdocs folder (actually htdocs/landp/site/includes/fpdf).

in my php file i start with (in fact it is the only line so far!):

require $_SERVER[‘DOCUMENT_ROOT’]. ‘/landp/site/includes/fpdf/fpdf.php’;

but i get the following warning.

Warning: require(C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/landp/site/includes/fpdf/fpdf.php) [function.require]: failed to open stream: No such file or directory in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\TMPh38ecc1dvg.php on line 3

Fatal error: require() [function.require]: Failed opening required ‘C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/landp/site/includes/fpdf/fpdf.php’ (include_path=‘.;C:\php5\pear’) in C:\Program Files (x86)\Apache Software Foundation\Apache2.2\htdocs\TMPh38ecc1dvg.php on line 3

I can’t see where i am going wrong, so some assistance would be greatly appreciated!

Check the permissions on the file… make sure apache has read access

Also, check the path is correct… open up a terminal and browse to C:/Program Files (x86)/Apache Software Foundation/Apache2.2/htdocs/landp/site/includes/fpdf/fpdf.php … This makes sure the file actually exists in the right place.

My guess would be that its to do with permissions tho

Ty Mrwooster - working, although embarressingly it wasnt the permissions.

I followed the path and was surprised to see the .zip file in the last folder NOT the unzipped fpdf files!!!

I am now goign to soak my head in a bucket of water and then drink wine, lots. I spent an easy 2 hours on that today!!! grrrr

(still it works now - thank you )

No worries… glad you sorted it