zoukankan      html  css  js  c++  java
  • PHP文件上传(命名)

    '.Uploadslogo1.jpg'


    1  $names1 = time().mt_rand(100,999).'.png';
    2             $path='.Uploadslogo\'.$names1;
    3             $r=@move_uploaded_file($_FILES['material_name']['tmp_name'],$path);
    $_FILES["Filedata"]["name"] = md5(microtime(1) . rand()) . $type;



    if (IS_POST) {
    //生成文件名
    $names1 = time().mt_rand(100,99999).'.swf';
    //文件生成路径
    $path='Uploadslogos\'.$names1;
    //上传文件的函数
    $r=move_uploaded_file($_FILES["material_name"]['tmp_name'],".$path");
  • 相关阅读:
    汉语-词语:理解
    汉语-词语:头脑
    SELECT INTO
    SELECT
    scp
    samba
    rpmgraph
    rpmdeps
    rpmcache
    rpmbuild
  • 原文地址:https://www.cnblogs.com/xiaolang1/p/4349564.html
Copyright © 2011-2022 走看看