Jump to content

Help whit what its caled in the PHP envirinment when you call up


LeonLatex
 Share

Go to solution Solved by requinix,

Recommended Posts

I'm wondering the following:
What is the name of the "PHP language / in the PHP environment" when you want to develop / have developed a project (eg a CMS) that retrieves all underlying pages to be displayed in only one file, such as and file index.php? For example. http://ww.domain.com/my_directory/?p and retrieving what is referenced in one and the same file. when you call something via "?p" (p is a example).

Hope you understand what I mean because I can not describe this better in English. It's like sending a query (? P) and retrieving what is referenced in one and the same file.

Link to comment
Share on other sites

  • Solution

It's not exactly easy to tell what it is you're describing, but I think the general term you're looking for is "front controller": where most/all code doesn't start off by executing individual .php files but instead everything goes through one file (typically index.php) which then has some amount of logic to determine what code should be running. That process can start with URL rewriting (telling the web server that everything should go through index.php) or simply using specially-crafted URLs (such as query strings like /my_directory/?stuff or PATH_INFOs like /index.php/stuff); the former is the modern approach.

  • Great Answer 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.