Username
epiz_33609212
Error Message
on one of my pages I tried to add a require_once
like this:
set_include_path(dirname(__FILE__));
require_once 'phar://'.dirname(__FILE__).'/<phar_name>/vendor/autoload.php';
only to have these warnings:
Warning: require_once(): open_basedir restriction in effect. File(/home/vol15_4/epizy.com) is not within the allowed path(s): (/php_sessions:/tmp:/var/www/errors:/usr/share/pear:/home/vol15_4/epizy.com/epiz_33609212/htdocs) in /home/vol15_4/epizy.com/epiz_33609212/htdocs/login.php on line 22
Warning: require_once(phar:///home/vol15_4/epizy.com/epiz_33609212/htdocs/<phar_name>/vendor/autoload.php): failed to open stream: phar error: invalid url or non-existent phar "phar:///home/vol15_4/epizy.com/epiz_33609212/htdocs/<phar_name>/vendor/autoload.php" in /home/vol15_4/epizy.com/epiz_33609212/htdocs/login.php on line 22
Fatal error: require_once(): Failed opening required 'phar:///home/vol15_4/epizy.com/epiz_33609212/htdocs/<phar_name>/vendor/autoload.php' (include_path='/home/vol15_4/epizy.com/epiz_33609212/htdocs') in /home/vol15_4/epizy.com/epiz_33609212/htdocs/login.php on line 22
This is the first time I’m using phar so I have no idea what’s wrong or how o fix this
Any help will be appreciated
Thanks!