Month: January 2025
-
PHP Concepts
Router The router in PHP is responsible for directing HTTP requests to the appropriate logic in an application. It maps incoming requests (e.g., GET or POST) to specific controllers and methods. In frameworks like Laravel, routes are defined in dedicated files (e.g., web.php or api.php) and allow for route parameters, named routes, and middleware assignments.…
//
-
MySQL connection to PHP
To connect your MySQL Database to your PHP you need the connection data (host, port, name, password and charset) which is usually in a “config.php” file. Here’s an example: Then you will also need a “Database” PHP class like this:
//
-
Modul 187
Hardware Computer components MB (Mother / Mainboard) The mainboard is the central board to which all other components are connected. It is important that the connections (e.g. CPU socket, RAM slots) are compatible with the CPU, RAM and other components. It should also offer the right number and type of connectors such as M.2, PCIe…
//
