ÎÞ·¨ÔØÈë mysql À©Õ¹£¬Çë¼ì²é PHP ÅäÖ᡽â¾ö°ì·¨
PS:ÎÒ½ñÌìÅäÖà ·þÎñÆ÷µÄʱºò³öÏÖµÄÎÊÌâ¾ÍÊÇÕâ¸ö£¬µ«ÊÇÕÕ×Å·½·¨¶¼×öÁË£¬Ñ¾µÄ¡£¡£»¹ÊÇûÓ㬼«¶ÈÓôÃÆËÀ¡£¡£°¥¡£¡£¡£ÎÒÒ²²»ÖªµÀʲôÔÒòÄØ¡£¡£¿ÉÄܵÄÔÒò¶¼ÕÒ¹ýÁË¡£¡£ÓôÃÆ°¡`~
apache2+mysql+php5+phpmyadminÅäÖÃÎÊÌ⣺ÎÞ·¨¼ÓÈëmysqlÀ©Õ¹£¬Çë¼ì²éphpÅäÖÃ...
°²×°Íêapache2+mysql+php5ºó£¬°²×°phpmyadmin²¢ÅäÖúÃÒÔºó£¬ÔÚä¯ÀÀÆ÷µØÖ·¿òÊäÈ룺http://localhost/phpmyadmin/ ÏÔʾÈçÏÂÌáʾÐÅÏ¢:
-----------------------------------------------
ÎÞ·¨ÔØÈë mysql À©Õ¹£¬
Çë¼ì²é PHP ÅäÖÃ
Îĵµ
----------------------------------------------
½â¾ö°ì·¨:ÐÞ¸Ä "c:/windows/php.ini" ²éÕÒphp_mysql.dll ½«Ç°ÃæµÄ×¢ÊÍ·û";"È¥µô
È»ºó½« "php°²×°Ä¿Â¼/libmysql.dll" ºÍ "php°²×°Ä¿Â¼/ext/php_mysql.dll" ¸´ÖƵ½ "c:/windows/system32/" Ï ÖØÆôapache¼´¿É
ÁíÍ⣬µ±ÄãÔٴδò¿ªphpmyadminʱ£¬¿ÉÄÜ»áÌáʾ:
----------------------------------------------
ûÓз¢ÏÖ PHP µÄÀ©Õ¹ÉèÖÃmbstring£¬ ¶øµ±Ç°ÏµÍ³ºÃÏñÔÚʹÓÿí×Ö·û¼¯¡£Ã»ÓÐ mbstring À©Õ¹µÄ phpMyAdmin ²»ÄÜÕýȷʶ±ð×Ö·û´®£¬¿ÉÄܲúÉú²»¿ÉÒâÁϵĽá¹û.
----------------------------------------------
½â¾ö°ì·¨£¬ÐÞ¸Ä "c:/windows/php.ini" ²éÕÒextension=php_mbstring.dll È¥µôÇ°ÃæµÄ";"×¢ÊÍ·û£¬±£´æ¡£
È»ºó½« "php°²×°Ä¿Â¼/ext/php_mbstring.dll"¿½±´µ½ "c:/windows/system32" Ï£¬ ÖØÆôapache¼´¿É¡£
Ïà¹ØÎĵµ£º
Ë÷ÒýµÄ´ú¼Û
¡¡¡¡Ò»°ãÀ´Ëµ£¬Èç¹ûMySQLÄܹ»ÕÒµ½·½·¨£¬ÀûÓÃË÷ÒýÀ´¸ü¿ìµØ´¦Àí²éѯ£¬Ëü¾Í»áÕâÑù×ö¡£Õâ
Òâζ×Å£¬¶ÔÓÚ´ó¶àÊýÇé¿ö£¬Èç¹ûÄãûÓжԱí½øÐÐË÷Òý£¬¾Í»áʹÐÔÄÜÊܵ½Ë𺦡£Õâ¾ÍÊÇÎÒËùÃè»æµÄË÷ÒýÓŵãµÄÃÀ¾°¡£µ«ÊÇËüÓÐȱµãÂð£¿Óеģ¬ËüÔÚʱ¼äºÍ¿Õ¼äÉ϶¼Óпª
Ïú¡£ÔÚʵ¼ùÖУ¬Ë÷ÒýµÄÓŵãµÄ¼ÛÖµÒ»°ã»á³¬¹ýÕâЩȱµã£¬µ«ÊÇÄ ......
ÔÊÐíËùÓÐÖ÷»úÔ¶³Ì·ÃÎÊ
GRANT ALL PRIVILEGES ON *.* TO 'dba'@'%' IDENTIFIED BY 'dbapassword' WITH GRANT OPTION;
Ö¸¶¨Ö÷»ú¿ÉÔ¶³Ì
GRANT ALL PRIVILEGES ON *.* TO 'dba'@'192.168.0.100' IDENTIFIED BY 'dbapassword' WITH GRANT OPTION;
Ö¸¶¨È¨ÏÞ¿ªÔ¶³Ì
grant select,insert,update,delete on test.* to db ......
PHPÔËÐйý³Ì
¼òµ¥µãµÄ
ä¯ÀÀÆ÷ -> web·þÎñÆ÷ -> php½âÊÍÆ÷ -> mysql·þÎñÆ÷ -> php½âÊÍÆ÷ -> web·þÎñÆ÷ -> ä¯ÀÀÆ÷
´ó¼ÒÎÕ¼¸¸öÊÖ
¸´ÔÓµãµÄ ä¯ÀÀÆ÷ -----------------------------> web·þÎñÆ÷-> php½âÊÍÆ÷ -> mysql·þÎñÆ÷ ….
PHPÔËÐлúÖÆ
2009-10-20 ......
²Ù×÷ϵͳcentos 5.3£¬php 5.1.6, xdebug 2.0.5¡£
Ö÷Òª²Î¿¼Îĵµ£º
xdebugµÄ°²×°Îĵµ£ºhttp://xdebug.org/docs/install¡£
xdebugµÄÔ¶³Ìµ÷ÊÔÅäÖÃÎĵµ£ºhttp://xdebug.org/docs/remote
Using vim and xdebug DBGp for debugging Drupal (or any PHP application)£º
http://2bits.com/articles/using-vim-and-xdebug- ......
<?php
function checkMobile($str)
{
$pattern = "/^(13|15)\d{9}$/";
if (preg_match($pattern,$str))
{
Return true;
}
else
{
Return false;
}
}
$str = checkMobile("15800000001");
......