مشکل با کامپوننت pollxt یانظرسنجی حرفه ای
مشکل با pollxt باسلام جوملا 1.5 به همرا کامپوننت pollxt روی لوکال به خوبی کار میکند اما وقتی روی هاست نصب میکنم warning زیر هم در صفحه مدیریت و هم صفحه کاربری 24 مرتبه پشت هم تکرار میشود
Warning: is_dir() [function.is-dir]: open_basedir restriction in effect. File(/home/raigiri1/public_html/images/stories///food/bun.jpg/) is not within the allowed path(s): (/home/raigiri1:/usr/lib/php:/usr/php4/lib/php:/usr/local/lib/php:/usr/local/php4/lib/php:/tmp) in /home/raigiri1/public_html/administrator/components/com_pollxt/pollxt.common.php on line 149
برای ارور بالا با مدیر هاست تماس گرفتم .گفتند قابلیت open_basedirبه طور اجباری روی هاست فعال است و کاری نمیتوان کرد جز اینکه به مسیر گفته شده در ارور بروید و خط ادرس داده شده یعنی خط 149 در pollxt.common.php را اصلاح کنی خط اسکریپت فوق الذکر مطابق زیر است:
function recursedir($BASEDIR, $subdir, $myarr = array()) {
$hndl = opendir($BASEDIR.$subdir);
while ($file = readdir($hndl)) {
if ($file == '.' || $file == '..')
continue;
$completepath = $BASEDIR."/".$subdir."/".$file."/";
if (is_dir($completepath)) {
# its a dir, recurse.
$myarr = recursedir($BASEDIR, $subdir."/".$file, $myarr);
} else {
// global $myarr;
# its a file.
$myarr[] = trim(stripslashes($subdir."/".$file));
}
}
کسی سر در می اورد مرا راهنمایی کند لطفا...!!11