Có thể bạn quan tâm


Đang tải thanh công cụ tìm kiếm ...

Hiện kết quả từ 1 tới 5 của 5

help xin giúp đỡ Web gửi thiệp có lỗi

Chủ đề được gửi trong chuyên mục PHP bởi tranxuanthiet


  1. 15-06-2012, 06:14 AM

    help xin giúp đỡ Web gửi thiệp có lỗi

    xin được giúp đỡ sớm, code web gửi thiệp của em bị lỗi upload hình ảnh.
    demo: http://thieponline.freeiz.com/vCard/upload.php

    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpCZ2HAm' to 'http://thieponline.freeiz.com/vCard/images/Anh hot girl xinh 2 - hotsun.hexat.com.jpg' in /home/a7798007/public_html/vCard/upload.php on line 75

    khi có câu trả lời gửi sms vào số 0979659879 để em biết, mong các anh giúp đỡ. hoặc có code gửi trực tiếp vào xuanthiet1996@gmail.com
  2. 15-06-2012, 06:28 AM

    help xin giúp đỡ Web gửi thiệp có lỗi

    bị lỗi font khi gửi nữa bạn ơi đã test thử lỗi font trầm trọng
    Xem nàk
    Nội dung đã được thu gọn Hiện ra
    Có gì đâu mà xem
  3. 15-06-2012, 12:32 PM

    help xin giúp đỡ Web gửi thiệp có lỗi

    Xem lại CHMOD nào
    Let it be
  4. 16-06-2012, 05:44 AM

    help xin giúp đỡ Web gửi thiệp có lỗi

    Em chmod file images thành 777 rồi mà vẫn còn bị lỗi mong giúp đỡ! Mà có còn chmod file nào nữa chỉ em với
    Demo: http://thieponline.freeiz.com/vCard
    Lỗi:
    Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpwwyxBc' to 'http://thieponline.freeiz.com/vCard/images/1298867052_171563144_3-TIM-GIRL-SAIGON-dan-ong-tim-Phu-nu.jpg' in /home/a7798007/public_html/vCard/upload.php on line 75

    -hình ảnh:

    ĐÂy là code upload.php:
    <?php
    //************************************************** *************************//
    // //
    // Program Name : vCard PRO //
    // Program Version : 3.1 Build 4 //
    // Program Author : Joao Kikuchi, Belchior Foundry //
    // Home Page : http://www.belchiorfoundry.com //
    // Supplied by : WTN-WDYL Team //
    // Nullified By : WTN-WDYL Team //
    // Distribution : via WebForum, ForumRU and associated file dumps //
    // //
    // (C) Copyright 2001-2005 Belchior Foundry //
    //************************************************** *************************//
    define('IN_VCARD', true);
    define('CURR_PAGE','upload.php');
    $templatesused = 'page_upload_step_one,page_upload_step_two,';
    $switch = 'upload';
    include('./lib.inc.php');
    $safeupload = 1;

    if( empty($user['priv_canupload']))
    {
    usr_deniedpage_die();
    }
    include(VCARD_ROOT_PATH.'include/user_header.inc.php');
    /* ################################### PAGE ############################## */

    if ($action=='upload')
    {
    $sql = "DELETE FROM ". TBL_ATTACH ." WHERE time<'". date('Y-m-d H:i:s',time()-60*60) ."' AND status='incomplete' ";
    $DB_site->query($sql);
    $exts = array('jpeg','jpg','png');
    if ( !empty($cfg['user_upload_max_dimension']) && $FILE_site->validate_extension($HTTP_POST_FILES['attachment']['name'],$exts) )
    {
    $size = @GetImageSize($HTTP_POST_FILES['attachment']['tmp_name']);
    $pic_width = ($size[0] != 0) ? $size[0] : '';
    $pic_height = ($size[1] != 0) ? $size[1] : '';
    $big = ($pic_width > $pic_height)? $pic_width : $pic_height;
    if ($cfg['user_upload_max_dimension'] < $big)
    {
    $FILE_site->check_gd_version();
    if ($FILE_site->gd_installed)
    {
    $HTTP_POST_FILES['attachment'] = $FILE_site->make_resize_upload($HTTP_POST_FILES['attachment'],$cfg['user_upload_max_dimension']);
    }
    }
    }
    if ($HTTP_POST_FILES['attachment']['size'] > ($cfg['user_upload_maxsize'] * 1024))
    {
    usr_message_die(GENERAL_ERROR,"<p>". $msg['upload_error_file_bigger_than'] ." ". $cfg['user_upload_maxsize'] ." Kilobytes!</p>");
    }
    $ext = get_file_extension($HTTP_POST_FILES['attachment']['name']);
    if (!empty($ext)) // images only
    {
    $_tmp = trim($cfg['user_upload_allowed_file_extension']);
    $_tmp = str_replace(' ', '', $_tmp);
    $allowed_ext = explode(',', $_tmp);
    if(is_invalid_file_extension($HTTP_POST_FILES['attachment']['name'], $allowed_ext))
    {
    usr_message_die(GENERAL_ERROR,$msg['upload_error_file_ext']);
    }
    }
    else
    {
    usr_message_die(GENERAL_ERROR,$msg['upload_error_file_ext']);
    }
    if ($safeupload != 0)
    {
    if (function_exists("is_uploaded_file"))
    {
    $path = $cfg['site_image_path'].$HTTP_POST_FILES['attachment']['name'];
    // copy file
    if (is_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name']))
    {
    if (move_uploaded_file($HTTP_POST_FILES['attachment']['tmp_name'],$path))
    {
    $handle = @fopen($path,'rb');
    $filesize = @filesize($path);
    $filestuff = @fread($handle, $filesize);
    @fclose($handle);
    @unlink($path);
    }
    }
    }
    }
    else
    {
    $handle = @fopen($attachment['tmp_name'],'rb');
    $filesize = @filesize($attachment['tmp_name']);
    $filestuff = @fread($handle, $filesize);
    @fclose($handle);
    @unlink($HTTP_POST_FILES['attachment']['tmp_name']);
    }
    $sql = "INSERT INTO ". TBL_ATTACH ." (attach_id,messageid,time,filedata,filename,filesi ze,ip) VALUES (NULL,'','". date('Y-m-d H:i:s') ."','".addslashes($filestuff)."','".addslashes($HT TP_POST_FILES['attachment']['name'])."','". $filesize ."','". $sys_user_session['ip'] ."') ";
    $DB_site->query($sql);
    $attach_id = $DB_site->insert_id();
    $html_uploaded_image = get_html_image(ATTACH_PAGE."?id=$attach_id&file=fi le.$ext");
    $html_link_create_card = '<p><input onclick="window.location.href=\''. CREATE_PAGE .'?uploaded='. $attach_id .'&file=file.'. $ext .'\'" type="submit" value="' . $msg['upload_create_ecard'] . '" class="button" /></p>';
    eval("make_output(\"".get_template('page_upload_st ep_two')."\");");
    }

    if (empty($action))
    {
    $form_field_file = '<form method="post" action="'.UPLOAD_PAGE.'" enctype="multipart/form-data" /><input type="hidden" name="action" value="upload" /><input type="file" name="attachment" size="30" class="forminput" />';
    $form_button_submit = '<input type="submit" name="submit" value="'. $msg['upload_button_send_file'] .'" width="150" class="button" /></form>';
    eval("make_output(\"".get_template('page_upload_st ep_one')."\");");
    }

    include(VCARD_ROOT_PATH.'include/user_footer.inc.php');
    ?>
  5. 17-06-2012, 05:51 AM

    help xin giúp đỡ Web gửi thiệp có lỗi

    không ai giúp đỡ à, buồn wá!!!!!!!!!!!!!!!!!!!!!!!!!!

Thông tin đề tài

Users Browsing this Thread

Hiện đang có 1 người đang xem bài viết này. (0 thành viên và 1 khách)

Visitors found this page by searching for:

Updating