Re: [PHP-DB] static or dynamic "printer-friendly" webpages?
At 27.06.2001 23:13, [EMAIL PROTECTED] wrote: >Question for all you php experts out there: > >My organization's website is based on mysql/php backend - 95% of the >webpages are generated dynamically using templates and database records. > >We have been asked to create "printer-friendly" versions of these pages. > >Now for your opinion/advice: should we (1)create another template called >"print.php" for example and generate there print friendly pages dynamically >or should we (2)create static html copies of each database record so that >they are "print friendly"? > >By "print friendly" I mean I want a page that doesn't have the text cut off >the right hand side of the page (nevermind, for now, that the original page >shouldn't do this >in the first place :) ) > >Thank you so much for your help! Depends how large your ogranization's website is. I'd definatly go with the dynamic one, that means creating one template and nothing else (appart from updating the other templates to have a PrinterFriendly link on them). While a static page would require updating every time something changes, and requires an amount of work proportional to the number of pages, which could create a living hell somewhere down the line, especially if you have more than one webmaster. *dynamic-dynamic-dynamic* ;-) -- Andreas D Landmark / noXtension Real Time, adj.: Here and now, as opposed to fake time, which only occurs there and then. -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] static or dynamic "printer-friendly" webpages?
I use a method combining both; I first write a so-called 'print.php' which has the ability to write a outputted page to a disk cache on the disk. So pages are only generated the first time they're accessed; on second and further requests they're serverd directly from the cache (disk in my case). HTH, Markus they're accessed On Wed, Jun 27, 2001 at 06:13:25PM -0400, [EMAIL PROTECTED] wrote : > Question for all you php experts out there: > > My organization's website is based on mysql/php backend - 95% of the > webpages are generated dynamically using templates and database records. > > We have been asked to create "printer-friendly" versions of these pages. > > Now for your opinion/advice: should we (1)create another template called > "print.php" for example and generate there print friendly pages dynamically > or should we (2)create static html copies of each database record so that > they are "print friendly"? > > By "print friendly" I mean I want a page that doesn't have the text cut off > the right hand side of the page (nevermind, for now, that the original page > shouldn't do this > in the first place :) ) > > Thank you so much for your help! > > - Shawna -- Markus Fischer, http://guru.josefine.at/~mfischer/ EMail: [EMAIL PROTECTED] PGP Public Key: http://guru.josefine.at/~mfischer/C2272BD0.asc PGP Fingerprint: D3B0 DD4F E12B F911 3CE1 C2B5 D674 B445 C227 2BD0 -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
Re: [PHP-DB] static or dynamic "printer-friendly" webpages?
I would recommend staying as dynamic as possible. To answer your question, yes, another simple template (one designed to be friendly to printers) would easily work to do what you need. PDF is an interesting option but a lot of work and the clients/customers would need to ensure having the proper plug-ins for their browsers (a bit of a headache, if you asked me, but can none the less be done). Good Luck! Jason k Larson -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] static or dynamic "printer-friendly" webpages?
hmmm, let me think about this. unless you are crazy you will choose your to stay dynamic. Can you imagine keeping track of new records... "let's click the PF version so I can print this... What the hell! Shawna I can't print this damn thing. This link doesn't work. blah blah..." It only gets worse I'm sure. I would try doing something with CSS... then you may even decide to change the other template. :) olinux -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, June 27, 2001 3:13 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] static or dynamic "printer-friendly" webpages? Question for all you php experts out there: My organization's website is based on mysql/php backend - 95% of the webpages are generated dynamically using templates and database records. We have been asked to create "printer-friendly" versions of these pages. Now for your opinion/advice: should we (1)create another template called "print.php" for example and generate there print friendly pages dynamically or should we (2)create static html copies of each database record so that they are "print friendly"? By "print friendly" I mean I want a page that doesn't have the text cut off the right hand side of the page (nevermind, for now, that the original page shouldn't do this in the first place :) ) Thank you so much for your help! - Shawna _ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP-DB] static or dynamic "printer-friendly" webpages?
Hi Shawna, ... the best (and professional) way are dynamic PDF's. Its a bit of work, but you can be sure that everyone can print them. You could create a PHP script that converts your dynamic web page into a static, printerfriendly PDF or you could try a pdf-printer, print the page to file and send it back to the browser. Yes: this means a bit of work, and I think there are several other ways out there, so keep your eyes open. This was just my suggestion. Greetinx, Mike Michael Rudel - Web-Development, Systemadministration - Besuchen Sie uns am 20. und 21. August 2001 auf der online-marketing-düsseldorf in Halle 1 Stand E 16 ___ Suchtreffer AG Bleicherstraße 20 D-78467 Konstanz Germany fon: +49-(0)7531-89207-17 fax: +49-(0)7531-89207-13 e-mail: mailto:[EMAIL PROTECTED] internet: http://www.suchtreffer.de ___ > -Original Message- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > Sent: Thursday, June 28, 2001 12:13 AM > To: [EMAIL PROTECTED] > Subject: [PHP-DB] static or dynamic "printer-friendly" webpages? > > > Question for all you php experts out there: > > My organization's website is based on mysql/php backend - 95% of the > webpages are generated dynamically using templates and > database records. > > We have been asked to create "printer-friendly" versions of > these pages. > > Now for your opinion/advice: should we (1)create another > template called > "print.php" for example and generate there print friendly > pages dynamically > or should we (2)create static html copies of each database > record so that > they are "print friendly"? > > By "print friendly" I mean I want a page that doesn't have > the text cut off > the right hand side of the page (nevermind, for now, that the > original page > shouldn't do this > in the first place :) ) > > Thank you so much for your help! > > - Shawna > -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP-DB] static or dynamic "printer-friendly" webpages?
Question for all you php experts out there: My organization's website is based on mysql/php backend - 95% of the webpages are generated dynamically using templates and database records. We have been asked to create "printer-friendly" versions of these pages. Now for your opinion/advice: should we (1)create another template called "print.php" for example and generate there print friendly pages dynamically or should we (2)create static html copies of each database record so that they are "print friendly"? By "print friendly" I mean I want a page that doesn't have the text cut off the right hand side of the page (nevermind, for now, that the original page shouldn't do this in the first place :) ) Thank you so much for your help! - Shawna