Replies Back to Article
Create PDF with PHP
Something wrong with code, to be expected for free stuff.
Changed this line:
header("Content-Disposition: inline; filename="report.pdf"");
From this:
header("Content-Disposition: inline; filename="report.pdf"");
Now it works!
Hi Jayson
You are right. The is a syntax error in the following line:
header("Content-Disposition: inline; filename="report.pdf"");
It should be:
header("Content-Disposition: inline; filename=report.pdf");
I have correct the problem. Thank you for your contribution.
Best regards,
Bonus!
No Probs,
My mistake of copying and pasting the same freakin' code.
Cool
Cheers
By the way, this example opens up so many new possibilities for my coding.
Now I can add Link to PDF along with the Printer friendly & Email this article.
Thank you!
If you find this FAQ useful you can rate it.
This helps us very much to determine what kind of Articles and FAQs the visitors of DMXzone.com want to read and appreciate.
I have,
ASP and or PHP to PDF is what coders are always looking for.
It's impossible to try and re-invent the wheel.
Cheers
Please , lets think, If there is more category name (around 1000 records), Then according to current coding, Only One page printing. other not visible or not go to next page...
What is the additional coding that need to add above script if there is more records (eg: 1000) ?
pelase