PHPÂëÅ©½ø»¯Ê·5
1.ËùÓеÄÊý¾Ý¶¼Ó¦¸ÃÒþ²ØÔÚËùÔÚµÄÀàµÄÄÚ²¿¡£
2.ÀàµÄʹÓÃÕß±ØÐëÒÀÀµÀàµÄ¹«¹²½Ó¿Ú£¬µ«À಻ÄÜÒÀÀµËûµÄʹÓÃÕß¡£
3.¾¡Á¿¼õÉÙÀàÐÒéÖеÄÏûÏ¢¡£
4.ʵÏÖËùÓÐÀ඼Àí½âµÄ×î»ù±¾µÄ½Ó¿Ú¡££¨¿½±´²Ù×÷£¬°üÀ¨É±´ºÍdz¿½±´£©£¬ÏàµÈÐÔÅжϣ¬ÕýÈ·Êä³öÄÚÈÝ£¬´ÓASC2ÃèÊö½âÎöµÈµÈ¡£
5.²»°ÑʵÏÖϸ½ÚÈç·ÀÖ¹¹«¹²´úÂëµÄ˽Óк¯Êý.·Åµ½ÀàµÄ¹²ÓнӿÚÖС£Èç¹ûÀàµÄÁ½¸ö·½·¨ÓÐÒ»¶Î¹«¹²´úÂ룬ÄÇô¾Í¿ÉÒÔ´´½¨Ò»¸ö·ÀÖ¹ÕâЩ¹«¹²´ú
ÂëµÄ˽Óк¯Êý¡£
6.²»ÒªÒÔÓû§ÎÞ·¨Ê¹Óûò²»¸ÐÐËȤµÄ¶«Î÷ÈÅÂÒÀàµÄ½Ó¿Ú¡£
7.ÀàÖ®¼äÓ¦¸Ã0ñîºÏ¹Øϵ¡£Ò»¸öÀàҪôºÍÁéλһ¸öÀàºÁÎÞ¹Øϵ£¬ÒªÃ´Ö»Ê¹ÓÃÁíÒ»¸öÀàµÄ¹«ÓнӿÚÖвÙ×÷¡£
8.ÀàÓ¦¸ÃÖ»±íʾһ¸ö¹Ø¼ü³éÏó¡£ÆäÖеÄËùÓÐÀà¶ÔÓÚͬһÀàÐÔ×ӵı仯Ӧ¸ÃÊǹ²Í¬·â±ÕµÄ¡£Ò»¸ö±ä»¯Èô¶ÔÒ»¸ö°üÓ°Ï죬Ôò½«¶ÔÕâ¸ö°üÖеÄËùÓÐÀà
¶¼²úÉúÓ°Ï죬¶ø¶ÔÆäËûµÄ°ü²»²úÉúÓ°Ïì¡£
9.°ÑÏà¹ØµÄÊý¾ÝºÍÐÐΪ¼¯ÖзÅÖá£Éè¼ÆÕßÓ¦µ±ÁôÒâÄÇЩͨ¹ýgetÖ®ÀàµÄ²Ù×÷´Ó±ðµÄ¶ÔÏóÖлñÈ¡Êý¾ÝµÄ¶ÔÏó¡£ÕâÖÖÀàÐ͵ÄÐÐΪ°µÊ¾×ÅÕâÌõ¾ÑéÔ
Ôò±»Î¥·´ÁË¡£
10.²»°Ñ²»Ïà¹ØµÄÐÅÏ¢·ÅÔÚÒ»¸öÀàÖС££¨¼´£º»¥²»¹µÍ¨ÐÐΪ£©¡£Ïò×ÅÎȶ¨µÄ·½Ïò½øÐÐÒÀÀµ¡£
11.È·±£ÎªÖ®½¨Ä£µÄ³éÏó¸ÅÄîÊÇÀ࣬¶ø²»Ö»ÊǶÔÏó°çÑݵĽÇÉ«¡£
12.ÔÚˮƽ·½ÏòÉϾ¡¿ÉÄÜͳһµÄ·Ö²¼ÏµÍ³¹¦ÄÜ£¬Ò²¼´£º°´ÕÕÉè¼Æ£¬¶¥²ãÀàÓ¦µ±Í³Ò»µÄ¹²Ïí¹¤×÷¡£
13.ÔÚϵͳÖв»Òª´´½¨È«ÄÜÀà/¶ÔÏ󡣶ÔÃû×Ö°üº¬Driver,Manager,System,SusystenµÄÀàÒªÌرð¶à¼ÓСÐÄ¡£¹æ»®Ò»¸ö½Ó¿Ú¶ø²»Ö»ÊÇʵÏÖÒ»¸ö½Ó¿Ú
¡£
14.¶Ô¹«¹²½Ó¿ÚÖж¨ÒåÁË´óÁ¿·ÃÎÊ·½·¨µÄÀà¶à¼ÓСÐÄ¡£´óÁ¿µÄ·ÃÎÊ·½·¨Òâζ×ÅÏà¹ØÊý¾ÝºÍÐÐΪûÓм¯Öдæ·Å¡£
15.¶Ô°üº¬Ì«¶à»¥²»¹µÍ¨µÄÐÐΪµÄÀà¶à¼ÓСÐÄ¡£Õâ¸öÎÊÌâµÄÁíÒ»±íÏÖÊÇÔÚÄãµÄÓ¦ÓóÌÐòÖеÄÀàµÄ¹²ÓнӿÚÖд´½¨Á˺ܶàµÄgetºÍsetº¯Êý¡£
16.ÔÚÓÉͬÓû§½çÃæ½»»¥µÄÃæÏò¶ÔÏóÄ£Ð͹¹³ÉµÄÓ¦ÓóÌÐòÖУ¬Ä£ÐͲ»Ó¦¸ÃÒÀÀµÓÚ½çÃ棬½çÃæÔòÓ¦µ±ÒÀÀµÓÚÄ£ÐÍ¡£
17.¾¡¿ÉÄܵİ´ÕÕÏÖʵÊÀ½ç½¨Ä£ÎÒÃdz£³£ÎªÁË×ñÊØϵͳ¹¦ÄÜ·Ö²¼ÔÔò£¬±ÜÃâÈ«ÄÜÀàÔÔòÒÔ¼°¼¯ÖзÅÖÃÏà¹ØÊý¾ÝºÍÐÐΪµÄÔÔò¶øÎ¥±³ÕâÒ»ÔÔò¡£
.
18.´ÓÉè¼ÆÖÐÈ¥³ý²»ÐèÒªµÄÀà¡£Ò»°ãÀ´Ëµ£¬ÎÒÃÇ»á°ÑÕâ¸öÀཱུ¼¶³ÉΪÊôÐÔ¡£
19.È¥³ýϵͳÍâµÄÀࡣϵͳÍâµÄÀàÌصãÊÇ£¬³éÏóµÄ¿´µ½ËûÃÇÖ»ÍùϵͳÁìÓò·¢ËÍÏûÏ¢£¬µ«²¢²»½ÓÊÜϵͳÁìÓòÄÚÆäËûÀà·¢³öµÄÏûÏ¢¡£
20.²»Òª°Ñ²Ù×÷±ä³ÉÀà¡£ÖÊÒÉÈκÎÃû×ÖÊǶ¯´Ê»òÕßÅÉÉú×Ô¶¯´ÊµÄÀ࣬ÌرðÊÇÖ»ÓÐÒ»¸öÓÐÒâÒåÐÐΪµÄÀà¡£¿¼ÂÇÒ»ÏÂÄǸöÓÐÒâÒåµÄÐÐΪÊÇ·ñÓ¦µ±Ç¨ÒƵ½ÒѾ´æÔÚ»òÕßÉÐδ·¢ÏÖµÄij¸öÀàÖС£
21.ÎÒÃÇÔÚ´´½¨Ó¦ÓóÌÐòµÄ·ÖÎ
Ïà¹ØÎĵµ£º
ÔÚPHPÀïµÃµ½Ç°ÌìºÍ×òÌìµÄÈÕÆڵĴúÂëÇ°ÌìÈ¥ÃæÊÔµÄʱºòÒ²ÊÇÕâÑù,²»¹ýÎÒµ±Ê±¼Ç²»ÆðÀ´ÁË.¾Í¼ÇµÃMYSQLÀïÃæµÄdate_sub(now(),'interval 1 day');date('Y/m/d h:i:s',mktime(date('h'), date('i'), date('s'), date('m') , date('d')+1, date('Y'))); -------------------------------------------------------------------------- ......
жÔØMysql
[root@localhost ~]# rpm -qa | grep mysql
mysql-3.23.58-9
php-mysql-4.3.4-11
mod_auth_mysql-20030510-4.1
mysql-server-3.23.58-9
˵Ã÷£ºrpm –qa | grep mysql ÃüÁîÊÇΪÁË°ÑmysqlÏà¹ØµÄ°ü¶¼ÁгöÀ´£¬Ð¶Ôض¼´Ó×îÏÂÃæµÄÒ»¸ö°ü¿ªÊ¼£¬Ö±µ½Ð¶ÔصôµÚÒ»¸öΪֹ¡£Ö´ÐÐrpm -q php£¬Èç¹û·µ»Øphp°æ±¾£¬ ......
(PHP 4 >= 4.0.4)
¹¦ÄÜ˵Ã÷£ºCheck for numeric character(s)
Description
bool ctype_digit ( string text)
Returns TRUE if every character in text is a decimal digit, FALSE otherwise.
Àý×Ó 1. A ctype_digit() example
<?php $strings = array('1820.20', '10002', 'wsl!12'); foreach ($strings ......
Mysql×ÔÉíѧϰ
1.Êý¾Ý¿â³£ÓõÄ×Ö¶ÎÀàÐÍ£º
ÕûÊýÐÍ: TINYINT(0-255×Ö¶Î), SMALLINT(´óµã), INT(¸ü³¤), BIGINT;
СÊýÐÍ: FLOAT, BOUBLE, DECIMAL(M(ÕûÊý),D£¨Ð¡Êý£©);
×Ö·ûÐÍ: CHAR(¹Ì¶¨), VARCHAR(µ¯ÐÔ×Ö·ûÐÍ£¬¼õ»ºÈÝÁ¿);£¨××Ö·ûΪ255£©
ÈÕÆÚÐÍ: DATETIME£¨ÈÕÆÚʱ¼ä£©, DATE£¨ÈÕÆÚ£©, TIMESTAMP£¨ÈÕÆÚת»¯ÎªÊý×Ö.¾«¶È ......