Buenas

Topic created · 3 Mensajes · 500 Visitas
  • buenas una pregunta alguien me podria decir porque al montar mi pagina web se monta todo perfecto pero a la hora de registro no me carga la imagen de los codigos que siempre en algunas webs se pone la captha como hago para que me cargue?? o como quito dicha opcion? doy +1

  • Talvez si nos muestras el Codigo fuente sea mas Facil enncontrar tu Problema Amigo

  • @'alexander3_hack' said:

    Talvez si nos muestras el Codigo fuente sea mas Facil enncontrar tu Problema Amigo

    Esto es lo q esta en el config de la carpeta captha

    session_name("m2hp");
    session_start();

    header("Content-Type: image/png"); // Sets the Content of this file to an PNG-Image

    $ttf = "./franconi.ttf"; //Schriftart

    $_SESSION["captcha_id"] = ""; // Clears the old value

    $zufallszahl = mt_rand(50000,60000); // Generates a random number between 50000 and 60000

    $_SESSION["captcha_id"] = $zufallszahl; // Sets the value of the session

    $bild = imagecreatefromgif("bg.gif"); // Creates a new image from background file

    $weisser = imagecolorallocate($bild, 255, 255, 255); // Sets white text color

    imagettftext($bild, 11, 10, 5, 20, $weisser, $ttf, $_SESSION["captcha_id"]);
    //imagestring($bild, 3, 8, 6, $_SESSION["captcha_id"], $weisser); // Prints the random number von the image

    ImagePNG($bild); // Output for the generated image
    ?>