...

/

Introduction to PHP Router

Introduction to PHP Router

Learn how to handle user requests and call the appropriate file (content).

We'll cover the following...

Our application works quite well. However, it’s not professional yet. This is because we’re calling the corresponding file in the URL for each page request. This is a problem. Let’s see why.

The problem

The way that our application is handling the HTTP request is not very smart:

  • The URI is not elegant.
  • It allows for security issues since we’re revealing the internal structure of our files.
...