ÇëÎÊphpÖÐÈçºÎת»»ÖÐÎıàÂë? - PHP / »ù´¡±à³Ì
¸÷λ´óϺ˰ïÏÂæ
ÎÒÏ뽫һЩºº×Öת»»µ½±àÂ룬±ÈÈç"Ê×Ò³" ת»»ºóΪ 首 ; 页 ;
»¹ÓÐһЩÊÇÊÇ·±ÌåµÄ±ÈÈç"Ê×頁" ת»»ºóΪ首 ; 頁 ;
ÇëÎÊת»»ºóµÄÕâ¸ö¶«Î÷ÊÇʲô±àÂë°¡£¿ÔõôʵÏÖ½«ÎÄ×Öת»»µ½Õâ¸ö±àÂëÄØ£¿
¶àл¸÷λÁË
¼±£¬ÔÚÏߵȣ¬
ûÓÐÈËÔÚô£¿×Ô¼ºË®Ò»Ï¡£¡£¡£
$this->utf82utf16($char);
°ÑÇ°ÃæµÄ¡°$this->¡±È¥µô£¬¼´£ºutf82utf16($char);
лл£¬²»¹ýÕ⺯Êý²»Ðа¡
echo encode2ascii('Ê×Ò³');
³öÀ´µÄÊÇ\u9996\u9875
ΪʲôÄó£¿Ó¦¸ÃÊÇ 首 ; 页 ;²Å¶Ô°¡
´íÁË¡£
°ÑËùÓеģº
$ascii .= sprintf('\u%04s', bin2hex($utf16));
¸ÄΪ£º
$ascii .= '&#'.hexdec(bin2hex($utf16)).';';
¾Í¿ÉÒÔÁË
°¡Õâ´ÎÐÐÁË£¬Íò·Ö¸Ðл£¡£¡
Ïà¹ØÎÊ´ð£º
Ôڲɼ¯Ò»¸öÒ³ÃæµÄʱºòͨ³£¶¼ÊÇʹÓÃfile_get_contents($url)
²»¹ý·µ»ØµÄ½á¹ûÓÐʱºò»á²»È«
Èç¹ûÔÚhtmlÖÐʹÓà document.ready,ÔÚÒ³Ãæ×¼±¸ºÃºó£¬Ê¹ÓÃajax¶ÁÈ¡±ðÒ»²¿·ÖµÄÊý¾Ý
ÔÙͨ¹ýÐÞ¸Ähtml±êÇ©µÄÄÚÈÝ£¬¾Í²¿·ÖµÄÊý¾Ý¾ ......
¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
»òÕßÔÚjsÎļþÀïµ÷ÓÃphpÎļþдµÄseesion£¿
PHP¸ÕÈëÃÅѧϰ,ÓÑÇ鶥һ¸ö
¼±Çó£ºÔÚphp½Å±¾ÀïÔõôµ÷ÓÃjsÎļþÀï·½·¨£¿
//echo '<script>alert("ok");< ......
phpÖÐÈçºÎÊä³öǧ·Öλ·Ö¸ô·û¡£¡£¡£¡£¡£
number_format
PHP code:
//ÊÇÕâÖÖЧ¹û°É£¿
echo number_format(123123123, 2, '.', ',');
//½á¹ûÊä³ö123,123,123.00 2ÊÇСÊýµãºóλÊý£¬µÚÈý¸ö²ÎÊýÊÇСÊýµã·Ö¸ô·û ......
ÏÖÔÚÓÐa,bÈý¸öÒ³Ãæ
bÊǵǽҳÃ棬·ÃÎÊaÒ³Ã棬Èç¹ûûÓеǼ£¬Ôòheaderµ½bÒ³Ãæ
ÔÚbÒ³ÃæÈ¡²»µ½HTTP_REFERER
òËÆHTTP_REFERERÖ»ÄÜÈ¡µ½a±êÇ©ºÍpost,get·½·¨µÄÌøת
Äܲ»ÄÜαÔìÒ»¸öHTTP_REFERER£¬È»ºó¹ýÈ¥£¿
¼ÈÈ»Ö ......
ÊÇÓñðÈËдµÄÀà×öµÄ£¬»¹ÔʱÌáʾYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'INSERT INTO admin(seq,passwd,type,n ......