Skip to main content
2 votes

How is a website using url "example.com/index.php?id=" for every page storing and calling its content?

This architecture is known as the front controller pattern. All the pages in a website will have some common functionality - themes, images, session handling/authorization, caching policy.... The big ...
symcbean's user avatar
  • 676
2 votes
Accepted

How is a website using url "example.com/index.php?id=" for every page storing and calling its content?

Most sites built with a CMS do something like this behind the scenes. The site is just not doing any routing in order to make the URLs appear in a search engine friendly / human readable format. Each ...
RichardB's user avatar
  • 2,529
1 vote
Accepted

Load php functions only once per session

You can use the require_once function in PHP to ensure to include the functions only once. Check the manual here: require_once PHP Manual There's no such thing as loading per session. You have to ...
Luis Alberto Barandiaran's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible