Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

php¶Ôsql injectionµÄ·À·¶

¶Ôhttp request¹ýÀ´µÄÊý¾Ý£¬·²ÊǺ¬Óе¥ÒýºÅ£¬Ë«ÒýºÅ£¬·´Ð±Ïߵȶ¼½øÐмÓбÏß´¦Àí¡£·ÀÖ¹½øÐÐ×¢Èë²Ù×÷¡£
/*
¶ÂSQL©¶´
*/
function quotes($content){

//Èç¹ûmagic_quotes_gpc=Off£¬ÄÇô¾Í¿ªÊ¼´¦Àí
if (!get_magic_quotes_gpc()) {
//ÅжÏ$contentÊÇ·ñΪÊý×é
if (is_array($content)) {
//Èç¹û$contentÊÇ ......

PHP exif ½éÉÜ

 // PHP exif
// --
//¡¡wikipedia ½éÉÜ£º
//¡¡EXIF£¨Exchangeable image file format£©Êǿɽ»»»Í¼ÏñÎļþµÄËõд£¬ÊÇרÃÅΪÊýÂëÏà»úµÄÕÕƬÉ趨µÄ£¬¿ÉÒԼǼÊýÂëÕÕƬµÄÊôÐÔÐÅÏ¢ºÍÅÄÉãÊý¾Ý¡£
//¡¡EXIF¿ÉÒÔ¸½¼ÓÓÚJPEG¡¢TIFF¡¢RIFFµÈÎļþÖ®ÖУ¬ÎªÆäÔö¼ÓÓйØÊýÂëÏà»úÅÄÉãÐÅÏ¢µÄÄÚÈݺÍË÷Òýͼ»òͼÏñ´¦ÀíÈí¼þµÄ°æ±¾ÐÅÏ¢¡£
......

phpÖеÄÎļþËø

ÎļþËøÓÐÁ½ÖÖ£º¹²ÏíËøºÍÅÅËûËø£¬Ò²¾ÍÊǶÁËø(LOCK_SH)ºÍдËø(LOCK_EX)
ÎļþµÄËøÒ»°ãÕâôʹÓãº
$fp = fopen("filename", "a");   
flock($fp, LOCK_SH) or die("lock error")   
$str = fread($fp, 1024);   
flock($fp, LOCK ......

PHP³ÌÐòÔ±×îÒ×·¸10ÖÖ´íÎó

 PHPÊǸöΰ´óµÄweb¿ª·¢ÓïÑÔ£¬Áé»îµÄÓïÑÔ£¬µ«ÊÇ¿´µ½php³ÌÐòÔ±Öܶø¸´Ê¼µÄ·¸µÄһЩ´íÎó¡£ÎÒ×öÁËÏÂÃæÕâ¸öÁÐ±í£¬ÁгöÁËPHP³ÌÐòÔ±¾­³£·¸µÄ10ÖдíÎ󣬴ó¶àÊýºÍ°²È«Ïà¹Ø¡£¿´¿´Äã·¸Á˼¸ÖÖ
1.²»×ªÒâhtml entities
  Ò»¸ö»ù±¾µÄ³£Ê¶£ºËùÓв»¿ÉÐÅÈεÄÊäÈ루ÌرðÊÇÓû§´ÓformÖÐÌá½»µÄÊý¾Ý£© £¬Êä³ö֮ǰ¶¼Òª×ªÒâ¡£
echo $ ......

phpµÄ½Å±¾ÀïÖ±½Ó½¨Á¢mysqlÀïµÄÊý¾Ý¿â

 ÎÊ£º
±ÈÈçÎÒÏëÖ±½ÓÔÚphp µÄ½Å±¾Àïдһ¸öÀàËÆ£¬install.phpµÄ½Å±¾
Õâ¸ö½Å±¾µÄ×÷ÓþÍÊÇ£¬Á¬½ÓmysqlÊý¾Ý¿â£¬²¢½¨Á¢ÎÒËùÏëÒª½¨Á¢µÄÊý¾Ý¿â£¬Êý¾Ý±í£¬ÒÔ¼°Ïà¹Ø×ֶΡ£
Çë¾ßÌåдһ¸öÀý×Ó£¬Ð»Ð»£¡
______________________________________________________________________________________________
´ð1£º
連½Ó·½· ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ