Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Pro PHP
|
Pro PHP Advanced PHP coding discussions. Beginning-level questions will be redirected to the Beginning PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Pro PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 4th, 2004, 03:05 PM
Registered User
 
Join Date: Nov 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Convert dynamic PHP report to PDF and then email

Hello all,

I am currently looking for a solution to my PDF creation issue. First, I can successfully create a PDF using htmldoc (Linux-based) from many different clients' MySQL data. My first question would be - Is there a way to generate the PDF's filename from a DB so that each PDF is uniquely named and move it to the appropriate "reports" folder that I desire?

Additionally, I would like to have a PHP or possibly even shell script which would run with Cron to take the newly created PDF, archive it according to the date the report was run, and email it to the client's designated email address. The email address and client info would be pulled from a MySQL db. One of the key requirements is that the script iterate through the DB so as to create/email PDF for each respective client. Obviously my goal is total automation.

I realize this is a lot to request but I have been working diligently for some time and only been able to come up with some minor solutions. Thanks for all of your participation and answers. They will be appreciated.

Brandon (phishee)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic PDF Email Attachments chellva J2EE 0 July 28th, 2007 03:57 AM
Convert Crystal Report 8 to PDF rsamanthif Crystal Reports 1 January 2nd, 2006 03:53 AM
convert Outlook email to pdf Tiffany Beginning VB 6 6 March 27th, 2004 06:43 AM
i would like convert msword to pdf pmwps Classic ASP Basics 2 September 6th, 2003 11:41 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.