open_basedir prohibits opening %s
Description
open_basedir is a PHP directive which limits access of the inclusion functions, such as include and require, to include files which are outside the path specified with open_basedir.
Example
<?php
include '/private/folder/secret.php';
?>
Alternatives
- Update the
open_basedirdirective to allow access to the file. - Update the inclusion path to target a file that falls within the paths in the
open_basedirdirective.
Related error messages
- failed-opening-required-%s-(include_path=%s)
- open_basedir-restriction-in-effect.-file(%s)-is-not-within-the-allowed-path(s):-(%s)
Changed Behavior
This error may appear following an evolution in behavior, in previous versions. See