หัวข้อ: ช่วยดู PHP Error หน่อยคร้าบบ เริ่มหัวข้อโดย: manoom ที่ 21 เมษายน 2009, 18:47:00 (http://math-eng28.comyr.com/123.jpg)
มันต้องแก้ตรงไหนอ่าครับ โค๊ดข้างล่างคือไฟล์ที่มันบอก error ไฟล์core.get_include_path.php <?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Get path to file from include_path * * @param string $file_path * @param string $new_file_path * @return boolean * @staticvar array|null */ // $file_path, &$new_file_path function smarty_core_get_include_path(&$params, &$smarty) { static $_path_array = null; if(!isset($_path_array)) { $_ini_include_path = ini_get('include_path'); if(strstr($_ini_include_path,';')) { // windows pathnames $_path_array = explode(';',$_ini_include_path); } else { $_path_array = explode(':',$_ini_include_path); } } foreach ($_path_array as $_include_path) { if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) { <<<บรรทัดที่34 $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path']; return true; } } return false; } /* vim: set expandtab: */ ?> หัวข้อ: Re: ช่วยดู PHP Error หน่อยคร้าบบ เริ่มหัวข้อโดย: DJJome ที่ 21 เมษายน 2009, 19:01:48 เหมือนจะ path ไม่ตรง
//./template มันแปลกๆ อ่ะครับ หัวข้อ: Re: ช่วยดู PHP Error หน่อยคร้าบบ เริ่มหัวข้อโดย: manoom ที่ 21 เมษายน 2009, 19:24:45 ต้องแก้ที่ไหน ยัง อ่าครับ
ผมไม่ค่อยมีความรู้ด้านนี้ ด้วย พึ่งหัดทำครั้งแรก หัวข้อ: Re: ช่วยดู PHP Error หน่อยคร้าบบ เริ่มหัวข้อโดย: DJJome ที่ 21 เมษายน 2009, 19:40:03 อ่าน readme.txt แล้วทำตามทีละขั้นครับ
หัวข้อ: Re: ช่วยดู PHP Error หน่อยคร้าบบ เริ่มหัวข้อโดย: hermiss ที่ 21 เมษายน 2009, 20:14:29 ไฟล์ core.get_include_path.php เอ๋อบรรทัดที่ 34 ให้ลองใช้ NotePad++ หรือ Editplus เปิดดู เราอาจจะเขียนอะไรผิด
หัวข้อ: Re: ช่วยดู PHP Error หน่อยคร้าบบ เริ่มหัวข้อโดย: manoom ที่ 22 เมษายน 2009, 09:02:48 ยังแก้ไม่ได้เลยอ่า ต้องแก้งัยอ่า บรรทัดที่ 34 อ่า
นี่คือโค๊ดไฟล์ที่มันบอก error ไฟล์core.get_include_path.php <?php /** * Smarty plugin * @package Smarty * @subpackage plugins */ /** * Get path to file from include_path * * @param string $file_path * @param string $new_file_path * @return boolean * @staticvar array|null */ // $file_path, &$new_file_path function smarty_core_get_include_path(&$params, &$smarty) { static $_path_array = null; if(!isset($_path_array)) { $_ini_include_path = ini_get('include_path'); if(strstr($_ini_include_path,';')) { // windows pathnames $_path_array = explode(';',$_ini_include_path); } else { $_path_array = explode(':',$_ini_include_path); } } foreach ($_path_array as $_include_path) { if (file_exists($_include_path . DIRECTORY_SEPARATOR . $params['file_path'])) { <<<บรรทัดที่34 $params['new_file_path'] = $_include_path . DIRECTORY_SEPARATOR . $params['file_path']; return true; } } return false; } /* vim: set expandtab: */ ?> |