php - Include Path issue with config and header -
i have problem include path in php.
code: https://github.com/kukubaczek/kukushop/blob/master/www/panel/index.php
if open panel/index.php page see error's:
warning: require_once(/parts/header.php): failed open stream: no such file or directory in /path/kukushop/www/panel/index.php on line 3
fatal error: require_once(): failed opening required '/parts/header.php' (include_path='/..') in /path/kukushop/www/panel/index.php on line 3
how can fix this? here problem include path.
you using absolute references when want relative file locations. try using instead:
require_once("../parts/header.php")
Comments
Post a Comment