Folks,
Imagine a searchengine that logs what you are searching and clicking. Imagine it has these pages:
register.php
login.php
logout.php
members.php (members list shown in pagination format)
profile.php (member profile page)
search.php (shows search results in pagination format)
submit.php (submit links).
Now imagine, instead of having 5/6 pages you just have one page:
index.php
And imagine this page has functions:
register
login
logout
search
members
profile
submit
And imagine these functions get triggered based on the params in the url ($_GET).
So if url is:
mysite.com/index.php?page_type=login
then the login() gets triggered.
And if the url is:
mysite.com/index.php?page_type=profile&profile=nogdog
Then you do the imagination.
My big question is, is it ok to have a dynamic one page site compared to the many page site ?
I’m guessing there won;t be any page loading problems after-all one page site or many page site, they’re all hosted on the same server and served by the same server.
So if 10k visitors come to the many page site where all the 5/6 pages are being viewed then if it takes 5 secs for each page to load to each visitor then the same would happen (no better & no worst) if 10k visitors were viewing the one page site. The one page would take likewise 5 secs to load on each 10k visitor’s screens. My point is, it doesn’t make any difference in terms of how long each page would load no matter if you were running the many page site or the one page site because it all depends on the server. How big it’s resource is and bandwidth and internet physical line and how many visitors visiting the same physical server. Nothing to do with how many different types of pages the server is serving.
Am I right ?