PDA

Click to See Complete Forum and Search --> : [RESOLVED] Warning: file_exists() [function.file-exists]


tendemo
Sep 5th, 2009, 01:53 PM
Hi I have the following PHP error

Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. File(/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html) is not within the allowed path(s): (/home/:/usr/lib/php:/tmp) in /home/a8345173/public_html/smarty/core/core.get_include_path.php on line 34

What should I look for to get around this as Im a newbie here. Thanks

visualAd
Sep 6th, 2009, 06:43 AM
The path of the file you are attempting to open is not in the list of allowed paths specified using the open_basedir directive. You can access any files in:

/home
/usr/lib/php
/tmp


To fix this either move the file to one of those locations or modify the open_basedir line in php.ini file to include the directory in which the file resides.