Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Static HTML Pages?  (Read 4741 times)

0 Members and 1 Guest are viewing this topic.

AnnieB

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Static HTML Pages?
« on: August 01, 2004, 07:28:24 am »

Is it possible to generate static html pages?
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Static HTML Pages?
« Reply #1 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
Logged
SANIsoft PHP applications for E Biz

AnnieB

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Static HTML Pages?
« Reply #2 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?
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Static HTML Pages?
« Reply #3 on: August 01, 2004, 08:33:53 am »

Online Album will never be static!
Logged
SANIsoft PHP applications for E Biz

AnnieB

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Static HTML Pages?
« Reply #4 on: August 01, 2004, 10:08:03 am »

that was kinda rude

thanks anyway
Logged

Tarique Sani

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Gender: Male
  • Posts: 2712
    • http://tariquesani.net
Re: Static HTML Pages?
« Reply #5 on: August 01, 2004, 10:59:56 am »

huh? i wonder why a simple statement as above is considered rude < shrug >
Logged
SANIsoft PHP applications for E Biz

AnnieB

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Static HTML Pages?
« Reply #6 on: August 01, 2004, 10:12:43 pm »

the ! gave the rude entonation

why couldnt it be static?
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Static HTML Pages?
« Reply #7 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.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

AnnieB

  • Coppermine newbie
  • Offline Offline
  • Posts: 7
Re: Static HTML Pages?
« Reply #8 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
Logged

kegobeer

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 4637
  • Beer - it does a body good!
    • The Kazebeer Family Website
Re: Static HTML Pages?
« Reply #9 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.
Logged
Do not send me a private message unless I ask for one.  Make your post public so everyone can benefit.

There are no stupid questions
But there are a LOT of inquisitive idiots

Kaspars

  • Translator
  • Coppermine newbie
  • **
  • Offline Offline
  • Posts: 3
Re: Static HTML Pages?
« Reply #10 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)
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 16 queries.