URLs in PHP

  1. How to create a router in PHP to handle different request types, paths, and request parameters.
  2. While there is no function to obtain the full request URL in PHP, we can still make our own using a combination of server variables to get what we need.
  3. How to use the parse_url function to obtain different parts of a URL.
  4. How to block unused URL parameters (non-existent) in PHP web applications.