เเจ้ง error : Failed opening required ตอน เรียกใช้ function เข้ามาใช้

สำหรับผู้ที่ เริ่มต้น Programming - PHP มีอะไร แนะนำ หรือข้อสงสัยต้องบอร์ด นี้ คนที่มีความรู้ แบ่งปันคนอื่นบ้างนะ ปัญหาการเขียนโปรแกรม แบบ OOP Session Cookies php network

Moderator: mindphp, ผู้ดูแลกระดาน

ภาพประจำตัวสมาชิก
thatsawan
PHP VIP Members
PHP VIP Members
โพสต์: 28508
ลงทะเบียนเมื่อ: 31/03/2014 10:02 am
ติดต่อ:

เเจ้ง error : Failed opening required ตอน เรียกใช้ function เข้ามาใช้

โพสต์ที่ยังไม่ได้อ่าน โดย thatsawan »

[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions_display.php on line 1424: require(includes/functions_compress.): failed to open stream: No such file or directory

Fatal error: require(): Failed opening required 'includes/functions_compress.' (include_path='.;\xampp\php\PEAR') in D:\xampp\htdocs\phpBB_Rc2_new\includes\functions_display.php on line 1424

เรียกใช้ include($phpbb_root_path . 'includes/functions_display.' . $phpEx); เข้ามาใช้

โค้ด: เลือกทั้งหมด

function phpbb_gen_download_links($param_key, $param_val, $phpbb_root_path, $phpEx)
{
    if (!class_exists('compress'))
    {
        require $phpbb_root_path . 'includes/functions_compress.' . $phpEx;
    }

    $methods = compress::methods();
    // Sort by preferred type.
    $methods = array_intersect(array('.zip', '.tar.bz2', '.tar.gz', '.tar'), $methods);
    $links = array();

    foreach ($methods as $method)
    {
        $exploded = explode('.', $method);
        $type = array_pop($exploded);
        $params = array('archive' => $method);
        $params[$param_key] = $param_val;

        $links[] = array(
            'LINK' => append_sid("{$phpbb_root_path}download/file.$phpEx", $params),
            'TYPE' => $type,
        );
    }

    return $links;
}
ภาพประจำตัวสมาชิก
mindphp
ผู้ดูแลระบบ MindPHP
ผู้ดูแลระบบ MindPHP
โพสต์: 41231
ลงทะเบียนเมื่อ: 22/09/2008 6:18 pm
ติดต่อ:

Re: เเจ้ง error : Failed opening required ตอน เรียกใช้ function เข้ามาใช้

โพสต์ที่ยังไม่ได้อ่าน โดย mindphp »

ตัวแปล $phpEx ที่รับเข้ามาไม่มีค่า
หรือยังไม่ได้ประกาศไว้
ติดตาม VDO: http://www.youtube.com/c/MindphpVideoman
ติดตาม FB: https://www.facebook.com/pages/MindphpC ... 9517401606
หมวดแชร์ความรู้: https://www.mindphp.com/forums/viewforum.php?f=29
รับอบรม และพัฒนาระบบ: https://www.mindphp.com/forums/viewtopic.php?f=6&t=2042
ตอบกลับโพส
  • Similar Topics
    ตอบกลับ
    แสดง
    โพสต์ล่าสุด

ผู้ใช้งานขณะนี้

สมาชิกกำลังดูบอร์ดนี้: Google Adsense [Bot] และบุคลทั่วไป 116