asp³£ÓÃÎļþ²Ù×÷º¯Êý(¶þ)
<%
'*******************************************************
'×÷ ÓÃ: µÃµ½ÎļþÀ©Õ¹Ãû
'º¯ÊýÃû: GetFileExt(fileTrue)
'²Î Êý: sFileName ÎļþÃû
'·µ»ØÖµ: ·µ»ØÎļþÀ©Õ¹Ãû
'*******************************************************
function GetFileExt(sFileName)
GetFileExt = UCase(Mid(sFileName,InStrRev (sFileName, ".")+1))
End function
'*******************************************************
'×÷ ÓÃ: ASPÉÏ´«Â©¶´ "\0" ·À·¶
'º¯ÊýÃû: TrueStr(fileTrue)
'²Î Êý: sFileName ÎļþÃû
'·µ»ØÖµ: ºÏ·¨Îļþ·µ»Ø True ,·ñÔò·µ»ØFalse
'*******************************************************
function IsTrueFileName(sFileName)
dim str_len,pos
str_len=len(sFileName)
pos=Instr(sFileName,chr(0))
If pos=0 or pos=str_len then
IsTrueFileName = true
else
IsTrueFileName = false
End If
End function
'*******************************************************
'×÷ ÓÃ: ¼ì²âÉÏ´«µÄͼƬÎļþ(jpeg,gif,bmp,png)ÊÇ·ñÕæµÄΪͼƬ
Ïà¹ØÎĵµ£º
ʲôÊÇPHP
¡¡¡¡PHP´ú±íÁË"³¬Îı¾´¦ÀíÆ÷"£¬ÕâÒâζ×ÅÄã±ØÐëÖªµÀ£¬ËüÊÇÒ»ÖÖ·þÎñÆ÷¶ËµÄ´¦ÀíÓïÑÔ£¬ÇÒÒÔHTMLµÄÐÎʽ³öÏÖ¡£Ëü×î³£Óõĵط½¾ÍÊÇÍøÒ³ÁË£¬Êý¾Ý´Ó¿Í»§»ú·¢Ë͵½Web·þÎñÆ÷£¬ÐÅÏ¢Ôڴ˱»´¦Àí²¢·µ»Ø½á¹û¡£
¡¡¡¡µ«ÕâÖÖͨÓÃÐÔµÄÓïÑÔË¿ºÁ²»¾ÖÏÞÓÚÔÚÍøÒ³·½Ã棬PHPÒ²Äܱ»ÓÃÔÚÃüÁîÐÐshellÖУ¬Ëü¿É×÷Ϊ²Ù×÷ϵͳµÄÒ»¸öÀ©Õ¹£¬ÓÉ´ËÖ´Ð ......
HTML:
<META HTTP-EQUIV="pragma" CONTENT="no-cache">
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache, must-revalidate">
<META HTTP-EQUIV="expires" CONTENT="Wed, 26 Feb 1997 08:21:57 GMT">
<META HTTP-EQUIV="expires" CONTENT="0">
PHP£º
header("Expires: Mon, 26 Jul 1997 ......
ÓÉÓÚÏÖÔÚÔÚ¹«Ë¾¸ºÔðÖÆ×÷±ê×¼µÄ¾²Ì¬Ò³Ã棬ΪÁËÔöÇ¿¿Í»§ÌåÑ飬ËùÒÔ¾³£Òª×öЩAJAXЧ¹û£¬Ò²Ñ§ÄãÒ²ºÍÎÒÒ»ÑùÔÚ£¬Ñ§Ï°AJAX¡£¶øÉè¼ÆAJAXʱʹÓõÄÒ»¸öÖØÒªµÄ¼¼Êõ£¨¹¤¾ß£©¾ÍÊÇXMLHTTPRequest¶ÔÏóÁË¡£ÕâÀﺣХ°ÑÎÒѧϰXMLHTTPRequest¶ÔÏóµÄÒ»µã×ÊÁÏÄóöÀ´¸ú´ó¼ÒÒ»Æð·ÖÏí¡£ÎÄÖеÄ×ÊÁ϶¼ÊǺ£Ð¥ÔÚѧϰʱÔÚÍøÉÏÊÕ¼¯µÄ£¬Èç¹ûÄú¿ª¹ý£¬ÄǾÍÔÙ ......
<%
'*******************************************************
'º¯ÊýÃû£ºCreateFolder(sPath)
'×÷ ÓÃ: ´´½¨Ä¿Â¼
'²Î Êý£ºsPath : ´´½¨µÄÏà¶ÔĿ¼·¾¶
& ......