• 04-01-2010, 00:46:53
    #1
    Arkadaşla Localhost'umda

    Alıntı
    Fatal error: Call to undefined function get_magic_quotes_gpc() in C:\AppServ\www\index.php on line 6
    böyle bir hata alıyorum.

    php.ini

    Alıntı
    ; Magic quotes
    ;

    ; Magic quotes for incoming GET/POST/Cookie data.
    magic_quotes_gpc = Off

    ; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
    magic_quotes_runtime = On

    ; Use Sybase-style magic quotes (escape ' with '' instead of \').
    magic_quotes_sybase = On
    index.php kodu

    Alıntı
    <?php require_once('klip.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
    {
    $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;

    $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);

    switch ($theType) {
    case "text":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
    break;
    case "long":
    case "int":
    $theValue = ($theValue != "") ? intval($theValue) : "NULL";
    break;
    case "double":
    $theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
    break;
    case "date":
    $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
    break;
    case "defined":
    $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
    break;
    }
    return $theValue;
    }
    }
    Ne yapmam gerek
  • 04-01-2010, 01:59:52
    #2
    Kimlik doğrulama veya yönetimden onay bekliyor.
    php.ini de magic_quotes_gpc = On yap hocam düzelir
  • 04-01-2010, 23:03:51
    #3
    AndyCap adlı üyeden alıntı: mesajı görüntüle
    php.ini de magic_quotes_gpc = On yap hocam düzelir
    On yapıyorumda düzelmiyoru hocam. Apache'ye reset çekiyorum. PC'ye mi format çeksem acaba