Register Register Member Login Member Login Member Login Forgot Password ??
PHP , ASP , ASP.NET, VB.NET, C#, Java , jQuery , Android , iOS , Windows Phone
 

Registered : 109,027

HOME > PHP > PHP Forum > ขอความช่วยเหลือด่วนครับ Loader.php error Warning: is_readable() [function.is-readable]: open_basedir restriction in effect



 

ขอความช่วยเหลือด่วนครับ Loader.php error Warning: is_readable() [function.is-readable]: open_basedir restriction in effect

 



Topic : 100727

Guest




คือผมนำ script สำเร็จรูปมาติดตั้งบน host แล้วขึ้นแบบนี้ครับ

Warning: is_readable() [function.is-readable]: open_basedir restriction in effect. File(/home/sweetie/domains/sweetie4u.com/public_html/application/modules/index.html/JO/Shell.php) is not within the allowed path(s): (/home/sweetie/:/tmp:/var/tmp:/usr/local/lib/php/) in /home/sweetie/domains/sweetie4u.com/public_html/JO/v.1.0a/JO/Loader.php on line 153


พอไปเปิดดูไฟล์และบรรทัดที่มันฟ้องก็เป็นตัวนี้ครับ ผมต้องแก้ตรงไหนที่สงสัยอยู่คือ $path ต้องแก้ไงดีครับผมไม่ค่อยรู้เรื่อง

Code (PHP)
 public static function isReadable($filename) {
        if (is_readable($filename)) {
            // Return early if the filename is readable without needing the 
            // include_path
            return true;
        }

        foreach (self::explodeIncludePath() as $path) {
            if ($path == '.') {
                if (is_readable($filename)) {
                    return true;
                }
                continue;
            }
            $file = $path . '/' . $filename;
            
            if (is_readable($file)) {
                return true;
            }
        }
        return true;
    }




Tag : PHP, HTML/CSS, Linux







Move To Hilight (Stock) 
Send To Friend.Bookmark.
Date : 2013-09-20 00:39:56 By : เบิ้ล View : 868 Reply : 9
 

 

No. 1



โพสกระทู้ ( 74,058 )
บทความ ( 838 )

สมาชิกที่ใส่เสื้อไทยครีเอท

สถานะออฟไลน์
Twitter Facebook

ถ้าแก้ไข Code ไม่ได้ อาจจะต้องแจ้งไปทาง Host ให้เปิด open_basedir = On ให้ครับ






แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-09-20 06:15:31 By : mr.win
 


 

No. 2

Guest


hi , ..i get the same error width same script, can help ..also..my ? ...found your script work
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-13 17:19:50 By : elios
 

 

No. 3



โพสกระทู้ ( 3,155 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


it might be useful for you
ini_set(‘open_basedir’, ini_get(‘open_basedir’) . PATH_SEPARATOR . ‘/../absolute path/’);

แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-13 18:11:15 By : sakuraei
 


 

No. 4

Guest


sorry my ..again, (i'm not more coder)

Can you explain my where put this code ?

tx more
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-14 22:34:34 By : shagal
 


 

No. 5



โพสกระทู้ ( 3,155 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


In general the best place to ini_set() is the start of the scripts like this.
<?php
ini_set(‘open_basedir’, ini_get(‘open_basedir’) . PATH_SEPARATOR . ‘/../absolute path/’);

$newObj = new ImagesObj();
$newObj->isReadable('../img/avatar/10019.png');

?>



ประวัติการแก้ไข
2013-10-14 23:45:38
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-14 23:40:58 By : sakuraei
 


 

No. 6

Guest


txyou Sakuraei

Understand the best position, but not understand in what file required this code (Loader.php ? ).
also i want run the same script of sweetie4u . c o m see sweetie have solve ))
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-15 13:58:48 By : Shagal
 


 

No. 7



โพสกระทู้ ( 3,155 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์



แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-15 15:08:07 By : sakuraei
 


 

No. 8

Guest


think not possible i use g s y ?
i love this

elisa
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-15 16:58:16 By : Shagal
 


 

No. 9



โพสกระทู้ ( 3,155 )
บทความ ( 0 )

สมาชิกที่ใส่เสื้อไทยครีเอท Hall of Fame 2012

สถานะออฟไลน์


You can put it on the config. file that the system required them once at the start.

Could you explained me about 'g s y' ? I have no idea about these.
What the meaning or Slang?
แสดงความคิดเห็นโดยอ้างถึง ความคิดเห็นนี้
Date : 2013-10-15 17:47:28 By : sakuraei
 

   

ค้นหาข้อมูล


   
 

แสดงความคิดเห็น
Re : ขอความช่วยเหลือด่วนครับ Loader.php error Warning: is_readable() [function.is-readable]: open_basedir restriction in effect
 
 
รายละเอียด
 
ตัวหนา ตัวเอียง ตัวขีดเส้นใต้ ตัวมีขีดกลาง| ตัวเรืองแสง ตัวมีเงา ตัวอักษรวิ่ง| จัดย่อหน้าอิสระ จัดย่อหน้าชิดซ้าย จัดย่อหน้ากึ่งกลาง จัดย่อหน้าชิดขวา| เส้นขวาง| ขนาดตัวอักษร แบบตัวอักษร
ใส่แฟลช ใส่รูป ใส่ไฮเปอร์ลิ้งค์ ใส่อีเมล์ ใส่ลิ้งค์ FTP| ใส่แถวของตาราง ใส่คอลัมน์ตาราง| ตัวยก ตัวห้อย ตัวพิมพ์ดีด| ใส่โค้ด ใส่การอ้างถึงคำพูด| ใส่ลีสต์
smiley for :lol: smiley for :ken: smiley for :D smiley for :) smiley for ;) smiley for :eek: smiley for :geek: smiley for :roll: smiley for :erm: smiley for :cool: smiley for :blank: smiley for :idea: smiley for :ehh: smiley for :aargh: smiley for :evil:
Insert PHP Code
Insert ASP Code
Insert VB.NET Code Insert C#.NET Code Insert JavaScript Code Insert C#.NET Code
Insert Java Code
Insert Android Code
Insert Objective-C Code
Insert XML Code
Insert SQL Code
Insert Code
เพื่อความเรียบร้อยของข้อความ ควรจัดรูปแบบให้พอดีกับขนาดของหน้าจอ เพื่อง่ายต่อการอ่านและสบายตา และตรวจสอบภาษาไทยให้ถูกต้อง

อัพโหลดแทรกรูปภาพ

Notice

เพื่อความปลอดภัยของเว็บบอร์ด ไม่อนุญาติให้แทรก แท็ก [img]....[/img] โดยการอัพโหลดไฟล์รูปจากที่อื่น เช่นเว็บไซต์ ฟรีอัพโหลดต่าง ๆ
อัพโหลดแทรกรูปภาพ ให้ใช้บริการอัพโหลดไฟล์ของไทยครีเอท และตัดรูปภาพให้พอดีกับสกรีน เพื่อความโหลดเร็วและไฟล์ไม่ถูกลบทิ้ง

   
  เพื่อความปลอดภัยและการตรวจสอบ กระทู้ที่แทรกไฟล์อัพโหลดไฟล์จากที่อื่น อาจจะถูกลบทิ้ง
 
โดย
อีเมล์
บวกค่าให้ถูก
<= ตัวเลขฮินดูอารบิก เช่น 123 (หรือล็อกอินเข้าระบบสมาชิกเพื่อไม่ต้องกรอก)







Exchange: นำเข้าสินค้าจากจีน, Taobao, เฟอร์นิเจอร์, ของพรีเมี่ยม, ร่ม, ปากกา, power bank, แฟลชไดร์ฟ, กระบอกน้ำ

Load balance : Server 05
ThaiCreate.Com Logo
© www.ThaiCreate.Com. 2003-2024 All Rights Reserved.
ไทยครีเอทบริการ จัดทำดูแลแก้ไข Web Application ทุกรูปแบบ (PHP, .Net Application, VB.Net, C#)
[Conditions Privacy Statement] ติดต่อโฆษณา 081-987-6107 อัตราราคา คลิกที่นี่