[PHP-DB] static or dynamic printer-friendly webpages?

2001-06-28 Thread sgibbs

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 



RE: [PHP-DB] static or dynamic printer-friendly webpages?

2001-06-28 Thread olinux

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?

2001-06-28 Thread Jason k Larson

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?

2001-06-28 Thread Markus Fischer

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?

2001-06-28 Thread Andreas D. Landmark

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]