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

ÓÃphp¶Ôjson×Ö·û´®±àÂëÎÊÌâ

    ×òÌìµ÷ÓÃͬʵÄÒ»¸öjson½Ó¿Ú£¬·¢ÏÖµ÷ÓÃphpÖеĺ¯Êýjson_decodeÎÞ·¨×ª»¯ÎªÊý×é¡£
   <?php
$json = "{'d':[['xxx','Öйú','¹ãÎ÷','xjr7670@sina.com','2010-05-01 13:35:02'],['xxx','Öйú','¹ãÎ÷','xjr7670@sina.com','2010-05-01 13:35:02']],'c':13659,'n':759}";
print_r(json_decode($json, true));//ÎÞ·¨ÏÔʾ
//½«µ¥ÒýºÅ¸ÄΪ˫ÒýºÅ¾ÍºÃÁË
$json = '{"d":[["xxx","Öйú","¹ãÎ÷","xjr7670@sina.com","2010-05-01 13:35:02"],["xxx","Öйú","¹ãÎ÷","xjr7670@sina.com","2010-05-01 13:35:02"]],"c":13659,"n":759}';
print_r(json_decode($json, true));


Ïà¹ØÎĵµ£º

ÀûÓÃipµØÖ·²éѯÇøÓò php³ÌÐò

¸Ã³ÌÐòûÓÐÓÅ»¯ Ö»ÊÇ×îԭʼµÄ³ÌÐò  ¿ÉÒÔ½«ÆäÓëflash½áºÏÆðÀ´£¡
Óëflash½áºÏÆðÀ´¾ÍÊǽ«phpµÃµ½µÄµØÖ·ºÍÇøÓò ´òÓ¡³öÀ´ÔÙ·µ»Ø¸öflash¶ËÕâô¼òµ¥
<?php
$getIP="218.11.140.23"; // ÕâÀïÊÇ×Ô¼ºËæ±ãдµÄÒ»¸öip  ʵ¼ÊʱÄ㻹Ҫͨ¹ý³ÌÐòµÃµ½Õâ¸öip
//Ö»¿ªÊ¼Ê±²éÇ°Èý¶Î
$subIPs=explode(".",$getIP);
$subIP=$sub ......

10 ¼þ£¨Ò²Ðí£©Äã²»Á˽â PHP µÄÊÂÇé

PHP
ÊÇÎÒÓùýµÄÓïÑÔÖУ¬×îÁîÈËÄÕ»ðµÄµ«Í¬Ê±Ò²ÊÇ×îÓÐȤµÄÓïÑÔ¡£ÎÒÖ®ËùÒÔ˵“ÁîÈËÄÕ»ð”Ö÷ÒªÊÇÒòΪº¯ÊýÃüÃû¼«Æä²»Ò»Ö¡£¾¡¹ÜÎÒÿÌ춼ҪÓõ½ÕâЩº¯Êý£¬ÎÒ»¹ÊÇÒªÏë
һϓ¾¿¾¹ÊÇ str_pos »¹ÊÇ strpos£¿ÊÇ str_split »¹ÊÇ
strsplit£¿”¡£ÁíÒ»·½Ã棬ÓÐʱºò¿ÉÒÔÓÃÒ»Ðмòµ¥µÄ´úÂë¾ÍÄܽâ¾öÒ»¸öÄÑÌâ¡£
ÏÂÃæ ......

21¸öʵÓñãÀûµÄPHP´úÂë

1. PHP¿ÉÔĶÁËæ»ú×Ö·û´®
´Ë´úÂë
½«´´½¨Ò»¸ö¿ÉÔĶÁµÄ×Ö·û´®£¬Ê¹Æä¸ü½Ó½ü´ÊµäÖеĵ¥
´Ê£¬ÊµÓÃÇÒ¾ßÓÐÃÜÂëÑéÖ¤¹¦ÄÜ¡£
/**************
[email=*@length]*@length[/email] - length of random string (must be a
multiple of 2)
**************/
function readable_random_string($length = 6){
    $conso= ......

PHP Floating point precision

Floating point precision
It is typical that simple decimal fractions like 0.1
or
0.7
cannot be converted into their internal binary
counterparts without a small loss of precision. This can lead to
confusing
results: for example, floor((0.1+0.7)*10)
will usually
return 7
......

ÖØȼÄãµÄPHP°²È«Ö®»ð

¶ÔÓڽű¾°²È«Õâ¸ö»°ÌâºÃÏñÓÀԶûÍêûÁË£¬Èç¹ûÄã¾­³£µ½¹úÍâµÄ¸÷ÖÖ¸÷ÑùµÄbugtraqÉÏ£¬Äã»á·¢ÏÖÓÐÒ»°ëÒÔÉ϶¼ºÍ½Å±¾Ïà¹Ø£¬ÖîÈçSQL
injection£¬XSS£¬Path Disclosure£¬Remote commands
executionÕâÑùµÄ×ÖÑ۱ȱȽÔÊÇ£¬ÎÒÃÇ¿´ÁËÖ®ºóµÄÓÃ;ÄѵÀ½ö½öÊÇ×¥È⼦?¶ÔÓÚÎÒÃÇÏë×öweb°²È«µÄÈËÀ´Ëµ£¬×îºÃ¾ÍÊÇÄÃÀ´Ñ§Ï°£¬¿ÉÊÇÍòÎï×¥¸ùÔ´£¬ÎÒà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ