html¡¢asp¡¢php¡¢jsp ½ûÖ¹»º´æµÄ·½·¨
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 05:00:00 GMT");
header("Cache-Control: no-cache, must-revalidate");
header("Pragma: no-cache");
ASP:
response.expires=0
response.addHeader("pragma","no-cache")
response.addHeader("Cache-Control","no-cache, must-revalidate")
JSP£º
response.addHeader("Cache-Control", "no-cache");
response.addHeader("Expires", "Thu, 01 Jan 1970 00:00:01 GMT");
Ïà¹ØÎĵµ£º
1 ÔÚSQLÓï¾äÖпÉͨ¹ýÌí¼ÓÏÞÖÆÌõ¼þ:left(text,20)ֻȡtextÎı¾µÄÇ°20¸ö×Ö;
¡¡¡¡2 ¿ÉÒÔÓÃlimit fromRecord, RecordNum À´×÷Ϊ·ÖҳʹÓÃ,±ÈÈçlimit 0,30±íʾ´ÓµÚÒ»¸ö¼Ç¼¿ªÊ¼±éÀú30¸ö¼Í¼;
¡¡¡¡3 Á½¸ö±íµÄÁ¬½Ó¿ÉÒÔÊÇ£ºtable1 join table2 using x(xΪÁ½¸ö±íµÄ¹«¹²×Ö¶Î),»òÕßÊÇtable1 join table2 on table1.x = table2.x
¡¡¡ ......
<html>
<head>
<title>
»ù´¡HTMLѧϰ
</title> <t/±êÌâ/t>
& ......
IISÅäÖÃ.htmlµÄÓ³ÉäÎÊÌ⣬ÆäʵÕâ¸öÎÊÌâ¿ÉÒÔ˵ÊÇHttpHandlerFactoryµÄÔÚweb.configÖÐ×¢²áµÄÎÊÌâ
ÎÊÌâÃèÊö£º
Ò»Ì×ÍøÕ¾³ÌÐòʹÓÃURLÖØд£¬ÅäÖÃÁËISAPIÓ³Éä.html ¶¯×÷È«²¿£¬¼ì²éÎļþÊÇ·ñ´æÔÚ ²»´ò¹´ ÈçÏÂͼ
ÎÊÌ⣺ ²»¶ÔIISÅäÖÃ.htmlµÄÓ³É䣬IISÕ¾µãĿ¼ÏÂ.htmlÒ³Ã涼ÄÜÏÔʾ¡£µ±ÅäÖÃÁË.htmlµÄÓ³Éä ......
http://www.w3school.com.cn/asp/met_mappath.asp
¶¨ÒåºÍÓ÷¨
MapPath ·½·¨¿É°ÑÖ¸¶¨µÄ·¾¶Ó°Éäµ½·þÎñÆ÷ÉÏÏàÓ¦µÄÎïÀí·¾¶ÉÏ¡£
×¢ÊÍ£º´Ë·½·¨²»ÄÜÓÃÓÚ Session.OnEnd ºÍ Application.OnEnd ÖС£
ʵÀý
ʵÀý 1
¾ÙÀý£¬Îļþ test.asp λÓÚ C:\Inetpub\wwwroot\Script¡£
Îļþ Test.asp (λÓÚ C:\Inetpub\wwwroot\Script) °üº ......