Quote:
Originally Posted by bitg
I have no idea what this means. I do not have access to php.ini. I am getting a similar error.
Code:
Warning: opendir(): open_basedir restriction in effect. File(/forums/images/link-icons/) is not within the allowed path(s): (/path/to/my/lib/php:/usr/local/lib/php:/tmp) in /path/to/my/forums/local_links.php on line 2630
Warning: opendir(/pathtomy/forums/images/link-icons/): failed to open dir: Operation not permitted in /path/to/my/forums/local_links.php on line 2630
The following setting(s) are invalid
file_icons_dir : //forums/images/link-icons/
I put my icons under the /forums/images/link-icons directory. I have tried moving the images to a wide variety of locations and get the same error.
HELP!!
|
Sorry if my answer seemed like Greek. I think this is what is going on...
Your system manager has configured your account so that people like me can only write scripts that do a "directory listing" in certain places in the file system. Unfortunately, she has set it to forbid "directory listing" access to your web site directories. My script tries to read the icon directory a) to be sure that it exists at all, and b) to see which icons are there. Step a) fails because of this setting.
I'll fix the code to deal with this situation.
I realise on further thought that a full fix is probably not possible for sites that have set open_basedir. I can get round the error message by not doing the error checks - but this will only be satisfactory if you make sure that you enter a correct directory and if you ensure you provide icons for every file type that you make available for download. Otherwise the user will see missing images for downloadable files when the icon isnt available. Can you guarantee this?