»
 

Go Back   ResellerRatings Store Ratings > ResellerRatings Forums > Tech Support

Reply
 
LinkBack Thread Tools Display Modes
Old 09-07-2003, 04:16 PM   #1 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Utah
Posts: 543
dragonb is on a distinguished road
php/static html speed question

hey all,

Was wondering on speed of a site...
making a site that has categories, then subcategories and items under them.

Categories will be updated off and on, but not often. The rest of the site will pull all sub cats and items from a db with php. I was going to have it also do the main page of categories too, but want it to load up as quick as possible. I believe it would load a lot faster if done in static html, then do the other pages in php. (correct if wrong) also, the main page would be cached by the browser for the most part and be very fast.

So, either update the main page by hand, or have php just update it when a category is added.
Is it a good idea to have php update a static html file? pros and cons?

another question on same topic, does php have anything to help the browser cache pages that haven't changed. I think asp.net has something like that now, saving server processing of the page again, and increasing speed.

thanks dragonb

dragonb is offline   Reply With Quote
Old 09-07-2003, 09:35 PM   #2 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
qball is on a distinguished road
Quote:
I believe it would load a lot faster if done in static html, then do the other pages in php. (correct if wrong) also, the main page would be cached by the browser for the most part and be very fast.
can I ask what is stopping you from trying and seeing the results? make a benchmark, reuse or sell?

to answer your ?:

basically a static HTML page will load faster than a dynamically server generated page. Why?

the webserver just serves static page.

the dynamically server generated page need to go through webserver to app to DB (maybe?) to, more apps, etc. This takes time and resources.

a static HTML page can load slower than a dynamically server generated page. Why?

the static page is large, or large enough that the above described webserver/app/db interaction is faster...
qball is offline   Reply With Quote
Old 09-08-2003, 08:10 AM   #3 (permalink)
Registered User
 
Join Date: Oct 2001
Location: Utah
Posts: 543
dragonb is on a distinguished road
hehe qball,
Was planning on trying it, just wanted to get some input before writing the whole thing.

It woul go to app to DB, so definitely faster for a static page, that won't be that large. Also, it won't be running on the beefiest server either, so static is good.
thx
dragonb is offline   Reply With Quote
Old 09-08-2003, 09:22 PM   #4 (permalink)
Banned
 
qball's Avatar
 
Join Date: Oct 2001
Posts: 447
qball is on a distinguished road
still try it anyway, just to see.

just remember, having webserver serve static page, don't expect to have much dynamic behavior for static page.

As in:

www.qball.com/daily_specials.html

will need to be manually or programtically written each day to be daily specials.

btw, have seen more than 1 instance of ws-app-db faster than ws-staticfile, due to ws config, load sharing/balancing, ISP restrictions...
qball is offline   Reply With Quote
Reply




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Most Active Discussions

Recent Discussions

All times are GMT -6. The time now is 10:50 PM.