UI Deploy

Curated, Short, Web UI Dev we Love.

Adding a simple authentication using PHP require and includes

Continuing on with our to-do application, in this weeks snippet we’re going to be using PHP’s require_once function. The require_once function is similar to the require function, in that it will execute and include any php code with the calling file but with one vital difference. It will only execute once. This is important for us in this tutorial as we are going to use it to validate our user.

view source

Advertisement