Friday, 10 May 2019

php - How to fix the open_basedir restriction error?








Hy I have a script called dataface, on a shared host it outputs all the time this warning



    Warning: file_exists() [function.file-exists]: open_basedir restriction in effect. 
File(/usr/local/lib/php/Dataface/FormTool/text.php) is not within the allowed path(s):
(/home/:/usr/lib/php:/tmp) in /home/a4385243/public_html/dataface/Dataface/FormTool.php on line 654


How can i fix this ?

No comments:

Post a Comment

php - file_get_contents shows unexpected output while reading a file

I want to output an inline jpg image as a base64 encoded string, however when I do this : $contents = file_get_contents($filename); print ...