Answers for "php require file parent direcory"

PHP
2

php include file in parent directory

//If your server is not resolving the file from the parent directory using
include '../somefilein_parent.php'

//try this (using the parent directory relative to the script):
include __DIR__ . "/../somefilein_parent.php";
Posted by: Guest on June-14-2021

Browse Popular Code Answers by Language