asp 获得文件扩展名
来源:网络来源TAG:文件扩展名浏览数: 日期:2010-8-10评论:
折叠ASP/Visual Basic Code复制内容到剪贴板
  1. '*******************************************************************   
  2. ' 获得文件扩展名   
  3. '*******************************************************************   
  4. function GetExtend(filename)   
  5. dim tmp   
  6. if filename<>"" then   
  7. tmp=mid(filename,instrrev(filename,".")+1,len(filename)-instrrev(filename,"."))   
  8. tmp=LCase(tmp)   
  9. if instr(1,tmp,"asp")>0 or instr(1,tmp,"php")>0 or instr(1,tmp,"php3")>0 or instr(1,tmp,"aspx")>0 then   
  10. getextend="txt"  
  11. else   
  12. getextend=tmp   
  13. end if   
  14. else   
  15. getextend=""  
  16. end if   
  17. end function   
昨天新闻点击排行
一周新闻点击排行
当月新闻点击排行
新闻链接
上一篇文章:asp 判断数字是否整形
下一篇文章:ASP语法高亮类代码
相关评论
正在加载评论列表...
评论表单加载中...