php date()º¯Êý˵Ã÷
string date ( string format [, int timestamp] ) //ÆäÖÐtimestampΪ¿ÉÑ¡£¬Ä¬ÈÏֵΪtime();
date("1"); //Monday
date("m.d.y"); //12.21.09
date("m.d.Y");//12.21.2009
$tomorrow = mktime(0, 0, 0, date("m") , date("d")+1, date("Y"));
$lastmonth = mktime(0, 0, 0, date("m")-1, date("d"), date("Y"));
$nextyear = mktime(0, 0, 0, date("m"), date("d"), date("Y")+1);
Ïà¹ØÎĵµ£º
<?php
/**
* ¸Ä±äͼƬµÄ¿í¸ß
*
* @author flynetcn (2009-12-16)
*
* @param string $img_src ÔͼƬµÄ´æ·ÅµØÖ·»òurl
* @param string $new_img_path ÐÂͼƬµÄ´æ·ÅµØÖ·
* @param int $new_width ÐÂͼƬµÄ¿í¶È
* @param int $new_height ÐÂͼƬµÄ¸ß¶È
* @return bool ³É¹¦true, ʧ°Üfalse
* ......
HTTP Only cookies without PHP 5.2
by Matt Mecham
on September 12, 2006
For a while, Microsoft have had a flag
for cookies called ‘httponly’. This doesn’t sound particularly
exciting, but it is a vital step forward for web application security.
This flag tells Internet Expl ......
http://ilia.ws/archives/121-httpOnly-cookie-flag-support-in-PHP-5.2.html
Thanks to a patch from Scott
MacVicar that I've just applied to CVS, PHP 5.2 will have support for
httpOnly cookie flag. This neat little feature allows you to mark a
newly created cookie as HTTP only, another words inacce ......
Submitted by gouki
on 2008, December 28, 9:00 PM. PHP
ÎÄÕµÄÄÚÈÝдµÄ²»´í£¬ËùÒÔ×ªÔØÒ»Ï¡£
ÔÎÄ£ºhttp://xinsync.xju.edu.cn/index.php/archives/2946
ÄÚÈÝÈçÏ£º
XML/HTML´úÂë
¹ýÈ¥µ±ÔËÐÐÒ»¸ö´óµÄwebÓ¦ÓÃʱºòÒâζ×ÅÔËÐÐÒ»¸ö´óÐ͵Äweb·þÎñÆ÷¡£ÒòΪÄãµÄÓ¦ÓÃÎüÒýÁË´óÁ¿µÄÓû§£¬Ä㽫²»µÃ²»ÔÚÄãµÄ·þÎñÆ÷ÀïÔ ......
PHP]
;;;;;;;;;;;
; WARNING ;
;;;;;;;;;;;
; This is the default settings file for new PHPinstallations.
; By default, PHP installs itself with a configuration suitablefor
; development purposes, and *NOT* for production purposes.
; For several security-oriented considerations that should betak ......