C
|
cgphp 1/7/2012 |
Try to output a simple pdf like the one in the minimal example from the FPDF tutorial (http://www.fpdf.org/?lang=en). |
![]() |
lefty author 1/7/2012 |
Try to output a simple pdf like the one in the minimal example from the FPDF tutorial (http://www.fpdf.org/?lang=en).
|
C
|
cgphp 1/7/2012 |
Move fpdf inside the include folder and use relative path: define('FPDF_FONTPATH','include/fpdf/font/'); |
![]() |
lefty author 1/7/2012 |
Move fpdf inside the include folder and use relative path: define('FPDF_FONTPATH','include/fpdf/font/');
|
C
|
cgphp 1/7/2012 |
eventclass_book_display::require_once(fpd.php) [eventclass-book-display.require-once]: failed to open stream: Result too large
|
![]() |
lefty author 1/8/2012 |
fpd.php??? It should be fpdf.php . I now have the code above with the includes same result though.
|
![]() |
lefty author 1/8/2012 |
Yes ; Saw that and renamed the folders ; was using different folders names which I suppose can be called by something I haven't seen . So changed the folders to the fpdf library names. Put the original code back in minus the mailing features. just to see if it would work or at least output to browser. I get the same result See Below: Technical information Error type 2 Error description eventclass_book_display::require_once(include/fpdf/fpdi.php) [eventclass-book-display.require-once]: failed to open stream: Result too large Althoug the error specified above says Result too large ; I suspect something to with directory permissions . I am on windows server and using php it is a little confliction to find where to give permission and to what folder I would need to give permission . I could be barking up the wrong tree here <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=63508&image=1&table=forumreplies' class='bbc_emoticon' alt=':)' /> but don't know where to go with this.? Thanks for any feedback . In finishing I am just trying to generate a pdf from the values of the form just added and eventually send as an email attachment. In testing I want it to show in browser so I choose I as the variable to print to screen ? |
![]() |
lefty author 1/8/2012 |
|
![]() |
lefty author 1/13/2012 |
Okay : above problems . Including the fpdf script inside the include folder fixed the path error. Now getting error : |
L
|
laonian 1/14/2012 |
John, $pdf->setSourceFile('/var/www/vhosts/yourlinktoyourpdftemplate/fpdf/reduction.pdf');
$pagecount = $pdf->setSourceFile('/var/www/vhosts/yourlinktoyourpdftemplate/fpdf/reduction.pdf');
|
![]() |
lefty author 1/15/2012 |
John, Could you try to change this line in your #1 post: $pdf->setSourceFile('/var/www/vhosts/yourlinktoyourpdftemplate/fpdf/reduction.pdf');
$pagecount = $pdf->setSourceFile('/var/www/vhosts/yourlinktoyourpdftemplate/fpdf/reduction.pdf');
|
![]() |
Admin 1/15/2012 |
There are plenty of "send PHP email with attachment" examples on the web. Check this one for example: |
![]() |
lefty author 2/1/2012 |
There are plenty of "send PHP email with attachment" examples on the web. Check this one for example: http://www.webcheatsheet.com/PHP/send_email_text_html_attachment.php#attachment
|