易截截图软件、单文件、免安装、纯绿色、仅160KB

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");


相关文档:

php文件上传

//上传文件
$dir="../upfile/jianli";
set_time_limit(0);
extract($_FILES);
if(!empty($res_clett["name"])){
    $upfile=&$HTTP_POST_FILES['con_pdf'];
    $upfileEx=substr($upfile['name'],-3);
    $tmp_name=date("YmdGhis").'.'.$upfileEx;
 &nb ......

我的php验证码类


<?php
/*
 * Created on 2010-3-11
 * author:zhangfei
 *我的验证码类
 */
 session_start();
 class Check_Class{
  public $h_img ;
public $c_back ;
public $c_front ;
//构造函数
function Check_Class(){
$h_img  =  imagecreate(100,30);
......

HTML转义字符表

转帖,不说话
字符
十进制
转义字符
"
&#34;
&quot;
&
&#38;
&amp;
<
&#60;
&lt;
>
&#62;
&gt;
不断开空格(non-breaking space)
&#160;
&nbsp;
字符
十进制
转义字符
字符
十进制
转义字符
字符
十进制
转义字符
?
&#161;
& ......

HTML基础学习笔记

<html>
 <head>
  <title>            
   基础HTML学习
  </title>      <t/标题/t>
         & ......

asp_数据库操作封装

一、conn.asp
<%
  '@Language="VBSCRIPT" CODEPAGE=65001  
  'meta http-equiv="Content-Type" content="text/html; charset=gb2312"  
  ' 936  utf-8
  class TDB
    function qry(byval sqlquery)
 & ......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号