Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

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_basedir directive to allow access to the file.
  • Update the inclusion path to target a file that falls within the paths in the open_basedir directive.

Changed Behavior

This error may appear following an evolution in behavior, in previous versions. See