Certificate module only shows PDF code...

Certificate module only shows PDF code...

by Phil Meadows -
Number of replies: 1

I have installed the Certificate module, but cannot get an actual PDF document to display correctly.  I started playing with the attached hello_world.php file and ran into problems with the require_once statements.  By playing, I mean I got a simple pdf file to display and started adding parts of the certificate/view.php file. 

Everything works fine until I uncomment either of these 2 lines

//require_once("../../config.php");

//require_once("../../lib/linklib.php");//bb

Then it reverts back to display the code, rather than the pdf document.  These files do exist and are in the correct places.  hello_world.php is in the same directory as the certificate/view.php file. 

I'm quite stumped on this one.  Any suggestions???

Average of ratings: -
In reply to Phil Meadows

Re: Certificate module only shows PDF code...

by Phil Meadows -
Ah... the bane of my existence is no more.  For some reason every file that was required/included for the certificate module had extra blank lines at the end of the file.  The class files... the config files... the lib files... but it works now!!!