Related Functions

require_once

PHP 4.0+

Includes and evaluates a file exactly once during script execution, preventing duplicate inclusions while ensuring fatal errors halt execution if the file cannot be found.

Description

The require_once() Includes and evaluates a file exactly once during script execution, preventing duplicate inclusions while ensuring fatal errors halt execution if the file cannot be found.

Example