forum.coppermine-gallery.net

Support => Older/other versions => cpg1.3.x Support => Topic started by: AnnieB on August 01, 2004, 07:28:24 am

Title: Static HTML Pages?
Post by: AnnieB on August 01, 2004, 07:28:24 am
Is it possible to generate static html pages?
Title: Re: Static HTML Pages?
Post by: Tarique Sani on August 01, 2004, 08:18:37 am
For something like Offline Album ?

No. but it has been requested often so it is on our long list of ToDo
Title: Re: Static HTML Pages?
Post by: AnnieB on August 01, 2004, 08:21:36 am
no, it's for a online one

a static album would use less resources :)

any idea when it'd be available?
Title: Re: Static HTML Pages?
Post by: Tarique Sani on August 01, 2004, 08:33:53 am
Online Album will never be static!
Title: Re: Static HTML Pages?
Post by: AnnieB on August 01, 2004, 10:08:03 am
that was kinda rude

thanks anyway
Title: Re: Static HTML Pages?
Post by: Tarique Sani on August 01, 2004, 10:59:56 am
huh? i wonder why a simple statement as above is considered rude < shrug >
Title: Re: Static HTML Pages?
Post by: AnnieB on August 01, 2004, 10:12:43 pm
the ! gave the rude entonation

why couldnt it be static?
Title: Re: Static HTML Pages?
Post by: kegobeer on August 01, 2004, 11:29:50 pm
The very nature of php is why online albums are not static.  PHP allows dynamically produced content - a static page is nothing more than hard coded HTML.  So... Coppermine creates dynamic pages (newest files, last updated albums, etc).

In order to produce a static page, code needs to be written that would actually create a HTML file, then dump all the output into it.  So, I'm sure you can see it's no quick and easy task.  And since it isn't a huge priority it's on the bottom of the list.

Hope that answers your question.
Title: Re: Static HTML Pages?
Post by: AnnieB on August 01, 2004, 11:53:28 pm
I never said making it was easy, I jsut said it was rude the way he put it.

The reason why I'd prefer it to generate html static is because the site is gonna be getting a lot of hits, and static would consume less resources.

That's all.

But, since it's not available, I understand, I will just keep looking
Title: Re: Static HTML Pages?
Post by: kegobeer on August 02, 2004, 06:33:35 am
If you're worried about Coppermine not being able to handle the load, there are websites out there that have thousands and thousands of pictures, documents, and videos that get thousands of hits a day, and perform flawlessly.  Coppermine's code is very efficient and does a great job handling many requests.

I honestly don't know how much more of a load Coppermine would put on a server compared to static HTML pages serving the same pictures.
Title: Re: Static HTML Pages?
Post by: Kaspars on February 14, 2005, 01:28:35 pm
http://www.ilovejackdaniels.com/php/caching-output-in-php

(but remember to exclude control panel php files)