PHPÈçºÎÉèÖÃÒ³Ã滺´æ1ÐÇÆÚ - PHP / »ù´¡±à³Ì
ÈçÌ⣬Ôõôд¸öheadÍ·²¿ ÈÃÒ³Ã滺´æ1ÐÇÆÚ¡£
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
Äã°ÑÀïÃæµÄʱ¼ä£¬¸Ä³Éµ±Ç°Ê±¼ä¼ÓÉÏÒ»¸öÐÇÆÚ
¼ÇµÃҪת»»³Égmtʱ¼ä
ÎÒÕâÑùдµÄ ²»ÖªµÀÐв»ÐС£
Ò»¸öÐÇÆÚºó¹ýÆÚ£º
PHP code:
header("Expires: ". gmdate("D, d M Y H:i:s", time() + 604800) . " GMT");
header("Cache-Control: no-cache");
header("Pragma: no-cache");
¹Ø×¢£¡
¹Ø×¢£¬Ò»Ö±¶Ô¹ýÆÚʱ¼äÕâ¿é²»Êì¡£
ÕâÀïÓиöÎÊÌâ²»ÊǺÜÇå³þ¡£
ÉèÖÃÒ»¸öÐÇÆÚºó¹ýÆÚ¡£Õâ¸öÏÖÔÚʱ¼äÔõôȷÈϵģ¿
´úÂëÉ쵀 header("Expires: ". gmdate("D, d M Y H:i:s", time() + 604800) . " GMT");
ÆäÖÐgmdate("D, d M Y H:i:s", time() £¬ÊÇʲôʱºòµÄʱ¼ä£¿ºÜ¶àÈË˵Êǵ±Ç°Ê±¼ä£¬µ«Õâ¸öµ±Ç°Ê±¼äµÄµ±Ç°ÊÇÖ¸Äĸö£¿´ÓÄĸöʱºòËãÆðÀ´µÄ£¿
//ÉèÖôËÒ³ÃæµÄ×îºó¸üÐÂÈÕÆÚ(ÓøñÁÖÍþÖÎʱ¼ä±íʾ)Ϊµ±Ì죬¿ÉÒÔÇ¿ÖÆä¯ÀÀÆ÷»ñÈ¡×îÐÂ×ÊÁÏ
PHP code:
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
ÏñÕâ¶Î£¬×¢ÊÍ˵µ±Ìì¡£²»ÊǺÜÃ÷°×µ±ÌìÊÇʲôÒâ˼£¿
ÒòΪ ÿÌìµÇ½¶¼¿ÉÒÔ˵Êǵ±Ìì°¡¡£¡£¡£
¶¥!
ѧϰ!
Ïà¹ØÎÊ´ð£º
²ËÄñÇó¾È£¡£¡
ÏÖÔÚÎÒÊÖÍ·ÓÐÒ»¸öphp+oracleµÄÍøÕ¾¡£¡£·þÎñÆ÷ÊÇlinuxϵͳ
Çë¸÷λ¸æËßÎÒÈçºÎ·¢²¼¡£¡£¡£ÎÒÊÇÐÂÊÖ¡£Ð»Ð»ÁË£¡£¡
°²×°Ò»¸öapache£¬°ÑphpÎļþ·Åµ½apacheµÄ·¢²¼Ä¿Â¼Ï£¬ ......
¾ÍÊÇÎÒÔÚij¸öÍøÒ³²åÈëÁËÒ»¸öphpÁ´½Ó
ÎÒÏë»ñµÃÄǸöÍøÖ·µØÖ·µØÖ·À¸µÄurl¶øÇÒÒªÊä³ötxt¸ñʽ»òÆäËû¸ñʽ¡£Ó¦¸ÃÈçºÎʵÏÖ£¿£¿£¿
»¹ÓоÍÊÇдÈëµ½.txt ÎļþÀÔõôȥÅжÏÊÇ·ñÖظ´¡£
$_sever[request_uri]
Â¥Ö÷¸øµã·Ö ......
<?php
@session_start();
require_once './module/t_doctor.inc';
$t_doctor = new t_doctor();
if(isset($Submit)){
$sql="select * from t_doctor WHERE docname='".$usernam ......
1¡¢ÊDz»ÊÇPHPÖÐÖ»ÄÜʹÓÃmysql_query("update user_aa set money=money2-".$bpanmm." where uid=".$userppp);¸üÐÂÊý¾Ý£¿£¿£¿
2¡¢PHP¸üÐÂmysql_fetch_row($res)Óëmysql_fetch_array($res)ÖеÄÊý¾ ......