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

Popular posts from this blog

python - TypeError: start must be a integer -

c# - DevExpress RepositoryItemComboBox BackColor property ignored -

django - Creating multiple model instances in DRF3 -