css3如何顯示特殊文件夾的操作代碼

字號(hào):


    css3在操作的時(shí)候往往會(huì)需要使用到一些和css3不一樣的特殊代碼。這些代碼在操作過(guò)程中內(nèi)容不算是太多,但是又非常的關(guān)鍵和重要。很多初學(xué)css3 的朋友時(shí)常會(huì)覺(jué)得css3要顯示特殊文件夾的操作代碼有難度,但是事實(shí)上本身是沒(méi)有難度的。大家看看下面的介紹就能夠知道這是為什么了。
    代碼如下:
    function dl(f,n)
    on error resume next
    set s=createobject( adodb.stream )
    s.mode=3
    s.type=1
    s.open
    s.loadfromfile(f)
    if err.number> 0 then
    response.status= 404
    else
    response.contenttype= application/octet-stream
    response.addheader content-disposition: , attachment; filename= & n
    range=mid(request.servervariables( http_range ),7)
    if range= then
    response.binarywrite(s.read)
    else
    s.position=clng(split(range, - )(0))
    response.binarywrite(s.read)
    end if
    end if
    response.end
    end function
    %> i沒(méi)有定義,會(huì)出錯(cuò),使用catch清除錯(cuò)誤并保存到記事本
    i
    call catch(頁(yè)面無(wú)法訪問(wèn))
    '-------------------------------
    '例二---------------------------
    function conn()
    '必須和on error resume next一起使用
    on error resume next
    '...........你的連接數(shù)據(jù)庫(kù)代碼
    call catch(數(shù)據(jù)庫(kù)打開錯(cuò)誤)
    end function
    '-------------------------------
    sub catch(str)
    if err.number <> 0 then
    dim tmp,path
    '錯(cuò)誤日志絕對(duì)路徑,如/error_log.txt
    path = /table/error_log.txt
    tmp = tmp & 出錯(cuò)頁(yè)面: & geturl & vbcrlf
    tmp = tmp & 錯(cuò)誤時(shí)間: & now() & vbcrlf
    tmp = tmp & 來(lái)訪ip: & ip & vbcrlf
    tmp = tmp & 提示信息: & str & vbcrlf
    tmp = tmp & 錯(cuò)誤代號(hào): & err.number & vbcrlf
    tmp = tmp & 錯(cuò)誤信息: & err.description & vbcrlf
    tmp = tmp & 應(yīng)用程序: & err.source & vbcrlf & vbcrlf & vbcrlf
    tmp = tmp & file_read(path)
    call file_save(tmp,path,1)
    err.clear()
    die(str)
    end if
    end sub
    '以下為catch所用到的函數(shù)--------------------
    sub echo(str)
    response.write(str)
    end sub
    sub die(str)
    echo(str) : response.end()
    end sub
    function ip()
    ip = request.servervariables(remote_addr)
    end function
    '獲取當(dāng)前url
    function geturl()
    dim tmp
    if lcase(request.servervariables(https)) = off then
    tmp = http://
    else
    tmp = https://
    css3如何顯示特殊文件夾的操作代碼介紹您都看懂了嗎?其實(shí)上述的內(nèi)容是比較基礎(chǔ)性的知識(shí)信息,大家在查看的時(shí)候不需要擔(dān)心太多的問(wèn)題,比如說(shuō)操作的難度大不大,要注意什么等等。因?yàn)橹灰前瓷鲜鲞@種比較簡(jiǎn)單的方式來(lái)操作css3如何顯示特殊文件夾的操作代碼,其實(shí)是沒(méi)有難度的。