PHPSyntax
Include Another File
Code example
require_once 'config.php';Loads another PHP file once.
In PHP, include another file: loads another PHP file once — require_once 'config.php';
require_once 'config.php';require_once 'config.php';Loads another PHP file once.
Use require_once 'config.php';.
Use this pattern: require_once 'config.php';
Yes. Use Copy code and adapt the example to your program.
No. The language syntax is the same across operating systems.