zoukankan      html  css  js  c++  java
  • 用PHP制作网站之函数页代码

    <?php

    function box($x,$y)

    {

    echo"<script>alert ('".$x."');window.location='".$y."'</script>";

    }

     

    function fck ($name,$path,$width,$height,$value,$toolset)

    {

                $fck=new FCKeditor($name);

    $fck->BasePath=$path;

    $fck->Width=$width;

    $fck->Height=$height;

    $fck->Value=$value;

    $fck->ToolbarSet=$toolset;

    $fck->Create();

    }

    function createfn()

    {

    date_default_timezone_set("PRC");

    $tt=getdate(time());

    $year=$tt["year"];

    $month=$tt["mon"];

    $day=$tt["mday"];

    $hour=$tt["hours"];

    $minute=$tt["minutes"];

    $second=$tt["seconds"];

    $fn=$year.$month.$day.$hour.$minute.$second;

    return $fn;

    }

    function upfile()

    {

    for ($i=0;$i<=4;$i++)

    {

    if ($_FILES["file"]["size"][$i]>0)

    {

    $ext_name=strrchr($_FILES["file"]["name"][$i],".");

    $fnnn=createfn().$i.$ext_name;

    move_uploaded_file($_FILES["file"]["tmp_name"][$i],"img/".$fnnn);

    $fnn=$fnnn.",".$fnn;

    }

    }

    return $fnn;

    }

    ?>

    <a>家视野家具商城http://www.jiashiye.com</a>

     

  • 相关阅读:
    Good Substrings CodeForces
    Watto and Mechanism Codeforces Round #291 (Div. 2)
    Codeforces Round #487 (Div. 2) A Mist of Florescence (暴力构造)
    Oulipo HDU
    POJ
    求值2 组合数公式题目
    URAL
    SCU
    【转】phpcms授课学习
    WordPress文章浏览历史插件
  • 原文地址:https://www.cnblogs.com/F-lower/p/3357950.html
Copyright © 2011-2022 走看看