php»ñÈ¡»·¾³ÐÅÏ¢
ϵͳ°æ±¾±È½Ï
mixed version_compare ( string version1, string version2 [, string operator] )
version_compare('5.1','<'); //±È½Ïµ±Ç°°æ±¾ÊÇ·ñСÓÚ5.1
ÊÇ·ñ¿ªÆô×Ô¶¯/
get_magic_quotes_gpc()
return 1 on: will add slash.
return 0 off:willn't add.
if(get_magic_quotes_gpc()) {
$cmd = stripslashes($_REQUEST['cmd']);
}
ÉèÖÃphp.ini
ini_set("max_execution_time",0);
Ïà¹ØÎĵµ£º
¶Ôhttp request¹ýÀ´µÄÊý¾Ý£¬·²ÊǺ¬Óе¥ÒýºÅ£¬Ë«ÒýºÅ£¬·´Ð±Ïߵȶ¼½øÐмÓбÏß´¦Àí¡£·ÀÖ¹½øÐÐ×¢Èë²Ù×÷¡£
/*
¶ÂSQL©¶´
*/
function quotes($content){
//Èç¹ûmagic_quotes_gpc=Off£¬ÄÇô¾Í¿ªÊ¼´¦Àí
if (!get_magic_quotes_gpc()) {
//ÅжÏ$contentÊÇ·ñΪÊý×é
if (is_array($content)) {
//Èç¹û$contentÊÇ ......
// PHP exif
// --
//¡¡wikipedia ½éÉÜ£º
//¡¡EXIF£¨Exchangeable image file format£©Êǿɽ»»»Í¼ÏñÎļþµÄËõд£¬ÊÇרÃÅΪÊýÂëÏà»úµÄÕÕƬÉ趨µÄ£¬¿ÉÒԼǼÊýÂëÕÕƬµÄÊôÐÔÐÅÏ¢ºÍÅÄÉãÊý¾Ý¡£
//¡¡EXIF¿ÉÒÔ¸½¼ÓÓÚJPEG¡¢TIFF¡¢RIFFµÈÎļþÖ®ÖУ¬ÎªÆäÔö¼ÓÓйØÊýÂëÏà»úÅÄÉãÐÅÏ¢µÄÄÚÈݺÍË÷Òýͼ»òͼÏñ´¦ÀíÈí¼þµÄ°æ±¾ÐÅÏ¢¡£
......
ÎļþËøÓÐÁ½ÖÖ£º¹²ÏíËøºÍÅÅËûËø£¬Ò²¾ÍÊǶÁËø(LOCK_SH)ºÍдËø(LOCK_EX)
ÎļþµÄËøÒ»°ãÕâôʹÓãº
$fp = fopen("filename", "a");
flock($fp, LOCK_SH) or die("lock error")
$str = fread($fp, 1024);
flock($fp, LOCK ......
PHPÊǸöΰ´óµÄweb¿ª·¢ÓïÑÔ£¬Áé»îµÄÓïÑÔ£¬µ«ÊÇ¿´µ½php³ÌÐòÔ±Öܶø¸´Ê¼µÄ·¸µÄһЩ´íÎó¡£ÎÒ×öÁËÏÂÃæÕâ¸öÁÐ±í£¬ÁгöÁËPHP³ÌÐòÔ±¾³£·¸µÄ10ÖдíÎ󣬴ó¶àÊýºÍ°²È«Ïà¹Ø¡£¿´¿´Äã·¸Á˼¸ÖÖ
1.²»×ªÒâhtml entities
Ò»¸ö»ù±¾µÄ³£Ê¶£ºËùÓв»¿ÉÐÅÈεÄÊäÈ루ÌرðÊÇÓû§´ÓformÖÐÌá½»µÄÊý¾Ý£© £¬Êä³ö֮ǰ¶¼Òª×ªÒâ¡£
echo $ ......
ÎÊ£º
±ÈÈçÎÒÏëÖ±½ÓÔÚphp µÄ½Å±¾Àïдһ¸öÀàËÆ£¬install.phpµÄ½Å±¾
Õâ¸ö½Å±¾µÄ×÷ÓþÍÊÇ£¬Á¬½ÓmysqlÊý¾Ý¿â£¬²¢½¨Á¢ÎÒËùÏëÒª½¨Á¢µÄÊý¾Ý¿â£¬Êý¾Ý±í£¬ÒÔ¼°Ïà¹Ø×ֶΡ£
Çë¾ßÌåдһ¸öÀý×Ó£¬Ð»Ð»£¡
______________________________________________________________________________________________
´ð1£º
連½Ó·½· ......