دوستان کسی میتونه کمک کنه ؟ کد بالارو هم تست کردم ولی باز همچنان مشکل دارد
کد:$mr = $maxredirect === null ? 5 : intval($maxredirect); if (ini_get('open_basedir') == '' && ini_get('safe_mode' == 'Off')) { curl_setopt($this->handler, CURLOPT_FOLLOWLOCATION, $mr > 0); curl_setopt($this->handler, CURLOPT_MAXREDIRS, $mr); } else { curl_setopt($this->handler, CURLOPT_FOLLOWLOCATION, false); if ($mr > 0) { $newurl = curl_getinfo($this->handler, CURLINFO_EFFECTIVE_URL); $rch = curl_copy_handle($this->handler); curl_setopt($this->handler, CURLOPT_URL, $url); curl_setopt($this->handler, CURLOPT_COOKIE, $this->cookie); curl_setopt($rch, CURLOPT_HEADER, true); curl_setopt($rch, CURLOPT_NOBODY, true); curl_setopt($rch, CURLOPT_FORBID_REUSE, false); curl_setopt($rch, CURLOPT_RETURNTRANSFER, true); do { curl_setopt($rch, CURLOPT_URL, $newurl); $header = curl_exec($rch); if (curl_errno($rch)) { $code = 0; } else { $code = curl_getinfo($rch, CURLINFO_HTTP_CODE); if ($code == 301 || $code == 302) { preg_match('/Location:(.*?)\n/', $header, $matches); $newurl = trim(array_pop($matches)); } else { $code = 0; } } } while ($code && --$mr); curl_close($rch); if (!$mr) { if ($maxredirect === null) { trigger_error('Too many redirects. When following redirects, libcurl hit the maximum amount.', E_USER_WARNING); } else { $maxredirect = 0; } return false; } curl_setopt($this->handler, CURLOPT_URL, $newurl); } }
مشکل داره بازم با ایم
با هاستینگم حرف زدم گفتند که Safe_mode خاموش است
بر روی لوکال هاست بدون مشکل اجرا میشه





پاسخ با نقل قول