|
-
Sep 3rd, 2008, 12:42 PM
#1
Thread Starter
Hyperactive Member
PHP error message.
Hi I am getting the below error message, how can I get around it ? Thanks
Code:
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/a1571937/public_html/smarty/core/core.get_include_path.php on line 34
-
Sep 3rd, 2008, 06:42 PM
#2
Re: PHP error message.
this path:
/usr/local/lib/php/./templates/tmpl1//./templates/tmpl1/index.tpl.html
doesn't look right.
You probably don't have access to that directory. Looks like it is out site of the www directory.
My usual boring signature: Something
-
Sep 4th, 2008, 01:30 AM
#3
Thread Starter
Hyperactive Member
Re: PHP error message.
How can I sort out which piece of code is causing this so I may either adjust or remove ? Thanks
-
Sep 4th, 2008, 01:55 AM
#4
Re: PHP error message.
clamp, please check your facts before posting.
The open_basedir directive which you will find in your httpd.conf or php.ini defines which directories scripts are allowed to access files in. In your case:
/home/:/usr/lib/php:/tmp
Thats:
/home/
/usr/lib/php
/tmp
You need to make sure the file which is being opened / included is in one of these paths. If it is not which it isn't in your case then you will get the above error. To fix this you either need to move the script or file you are trying to open to one of those paths or change you php.ini and add that path (which indecently is perfectly ok) to your open_basedir directive.
-
Sep 4th, 2008, 07:36 PM
#5
Re: PHP error message.
 Originally Posted by visualAd
clamp, please check your facts before posting.
i gave no facts, only opinions
My usual boring signature: Something
-
Sep 5th, 2008, 08:12 AM
#6
Re: PHP error message.
This isn't the place for opinions.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|