Jump to content
php.lv forumi

ervains

Reģistrētie lietotāji
  • Posts

    9
  • Joined

  • Last visited

Posts posted by ervains

  1. Kad mēģinu bildi ielikt man izmet shito!!

     

     

    Fatal error: Call to undefined function imagecreatefromgif() in

    C:\wamp\www\includes\photo_functions_include.php on line 18

     

    un te kods:

     

    <?php

    $imagetypes = array(

    ".bmp",

    ".gif",

    ".iff",

    ".jpg",

    ".JPEG",

    ".png",

    ".psd",

    ".tiff",

    ".wbmp"

    );

     

    function attach_exists($file) {

    $dir = FORUM."attachments/";

    $i = 1;

    $file_name = substr($file, 0, strrpos($file, "."));

    $file_ext = strrchr($file,".");

    while (file_exists($dir.$file)) {

    $file = $file_name."_".$i.$file_ext;

    $i++;

    }

    return $file;

    }

     

    if (isset($getfile)) {

    if (!isNum($getfile)) $getfile = 0;

    require_once INCLUDES."class.httpdownload.php";

    $result = dbquery("SELECT * FROM ".$db_prefix."forum_attachments WHERE post_id='$getfile'");

    if (dbrows($result)) {

    ob_end_clean();

    $data = dbarray($result);

    $object = new httpdownload;

    $object->set_byfile(FORUM."attachments/".$data['attach_name']);

    $object->use_resume = true;

    $object->download();

    }

    exit;

    }

    ?>

  2. Es lietojo PHP-Fusion jo neko iipashi nesajedzu no PHP.. ka avr uzstaisiit wienkārsu lapu klāt? kjip ervains.sytes.net tas nav spams man tur ir daudz sadaļu kas nāca kopā arPHP-Fusion.... bet gribu uzstaisiit wienk. lapu klaat.. cerams saprattat

×
×
  • Create New...