ช่วยด้วยคร๊าฟฟฟฟ Fatal error: Cannot redeclare strip_magic_quote

คือผมแก้สคริปยุดีๆ  มันขึ้นแบบนี้   ผมว่าผมไม่ได้เปลี่ยนอะไรนะ...

รบกวนช่วยดูให้หน่อยครับ  มันเกิดจากอะไร  หมายความว่าไง     ผมไม่มความรู้ด้านนี้เลย....



ส่วนที่แจ้ง error

Fatal error
: Cannot redeclare strip_magic_quotes() (previously declared in /home/www/public_html/include/bittorrent.php:15) in /home/www/public_html/bittorrent.php on line 25


Code ที่มันบอกว่า error

set_magic_quotes_runtime(0);

function strip_magic_quotes($arr) {
    foreach ($arr as $k => $v)
        $arr[$k] = (is_array($v)) ? strip_magic_quotes($v) : stripslashes($v);
    return $arr;
}

if (get_magic_quotes_gpc()) {
    if (!empty($_GET)) $_GET = strip_magic_quotes($_GET);
    if (!empty($_POST)) $_POST = strip_magic_quotes($_POST);
    if (!empty($_COOKIE)) $_COOKIE = strip_magic_quotes($_COOKIE);
    if (!empty($_REQUEST)) $_REQUEST = strip_magic_quotes($_REQUEST);
}


ขอบคุณครับที่ตอบ

06 ธ.ค. 2551 1 3,808

Cannot redeclare strip_magic_quotes() (previously declared

หมายถึงมีการสร้างฟังก์ชั่นนี้ ซ้ำกัน 2 ที่ใน 1 หน้าที่เรียกใช้ครับ ลองตรวจสอบและลบอันที่ซ้ำกันออกครับ
#1
ความคิดเห็น
ไฟล์อัปโหลด ชนิด jpg, jpeg ขนาดไฟล์ไม่เกิน 1024
^