¹ØÓÚPHPºÍphpMyAdminµÄÄÇЩÊÂ
°²×°
$cfg['PmaAbsoluteUri'] = 'http://localhost/phpMyAdmin/';//phpMyAdminµÄ°²×°Â·¾¶
$cfg['blowfish_secret'] = '123456';//¼ÓÃÜÃܳף¬¿ÉËæÒâ¸ü¸Ä¡£
$cfg['Servers'][$i]['user'] = 'root'; // MySQLÓû§£¬Èç root
$cfg['Servers'][$i]['password'] = 'pswd'; // MySQLÓû§ÃÜÂë
$cfg['DefaultLang'] = '';¡¡¸ÄΪ¡¡$cfg['DefaultLang'] = 'zh-gb2312';
PHP½áºÏIISµÄ£¬ÕûºÏºÜ¼òµ¥£¬¾Í²»ËµÁË£¡Ê¹ÓõÄÊÇphp5isapi.dll
°²×°SQLÏêϸ½Ì³ÌÇë²Î¼û mysql5ȫа²×°ÊÖ²á http://bbs.mysql.cn/thread-261-1-1.html
½â¾öphpMyAdminÎÞ·¨µÇ¼,Ò³ÃæÖ»Ë¢ÐÂÒ»´Î,ÎÞÌáʾ´íÎó
Windows Server 2003£¬ÔÚIISÉϼ¯³ÉÁËPhpÖ®ºó,µÇ½ÎÞÌáʾ´íÎ󣬵«ÊÇÈÔÈ»·µ»ØµÇ¼½çÃæ¡£
½â¾ö·½·¨£º
ÔÚPHPµÄ°²×°Ä¿Â¼½«php.iniÖеÄsession.auto_startµÄÖµ¸ÄΪ1£¨Æô¶¯£©£¬Ä¬ÈÏÊÇ0£¨½ûÓã©
ÔÚphpµÄĿ¼½¨Á¢¸öÎļþ¼Ðtmp£¨ÈçC:/php/tmp£©,ÉèÖÃtmpÊôÐÔΪervery oneÍêÈ«¿ØÖÆ
ÔÚphp.iniÕÒµ½session.save_path ÕâÒ»ÐÐ,Éè³Ésession.save_path = "C:/php/tmp"£¬²¢°ÑÇ°ÃæµÄ·ÖºÅÈ¥µô£¨ÒÔÉϵÄC:/php/tmp¸ù¾ÝÄãʵ¼ÊÇé¿öÉ趨£© ÖØÆôµçÄÔ£¬Ò»ÇÐOK.
phpMyAdmin - ´íÎó.ÎÞ·¨ÔØÈë mysql À©Õ¹
½â¾ö·½·¨£º
1¡¢¶ÔÓÚphp.iniÎļþ
½øÈë C:\PHP£¬½« php.ini¸´ÖÆÒ»·Ý·Åµ½ C:\WINNT£¨ Windows XP/2003 ÏÂΪ C:\Windows £©ÄÚ£¬È»ºóÓüÇʱ¾´ò¿ª£¬ÀûÓüÇʱ¾µÄ²éÕÒ¹¦ÄÜËÑË÷ extension_dir = "./"£¬²¢½«Æä·¾¶Ö¸µ½ÄãµÄ PHP Ŀ¼Ï嵀 extensions Ŀ¼£¬±ÈÈ磺extension_dir = "C:\PHP\ext"£»ÔÙËÑË÷ register_globals = Off£¬½« Off ¸Ä³É On£»²éÕÒ ;extension=php_mysql.dll£¬½«Ç°ÃæµÄÒýºÅ“£»”È¥µô¡£
2¡¢ÖØÒª£ºÔÚ°´ÕÕÊÖ²á˵Ã÷¸´ÖÆÁËphpĿ¼ext(ÊÖ²áÖжÔÓÚphp4xÊÇextension,ÕâÀïÓ¦¸ÃÊÇext£©Ä¿Â¼ÏµÄdllÎļþµ½system32µÄ»ù´¡ÉÏ£¬ÔÙ¸´ÖÆphpĿ¼ÏµÄlibmysql.dll£¬PHP\ext\php_mysql.dll£¬ext\php_mysqli.dll ¿½±´µ½C:\Windows\system32Ï£¬ÕâÑùPHP5²ÅÄÜÖ§³ÖMYSQL¡£
ÖØÐÂÆô¶¯IIS£º
phpMyAdmin³öÏÖÎÞ·¨ÔØÈë mcrypt À©Õ¹£¬<br />Çë¼ì²é PHP ÅäÖõĽâ¾ö·½·¨
³öÏÖÒÔϼ¸ÖÖÇé¿öºó¿ÉÄÜ»áÔì³ÉÔËÐÐphpmyadmin³ÌÐòÌáʾ“ÎÞ·¨ÔØÈë mcrypt À©Õ¹£¬<br />Çë¼ì²é PHP ÅäÖ﵀ ´íÎóÌáʾ
1¡¢Ã»ÓÐÕýÈ·°²×°MysqlÊý¾Ý¿â£¬ÔÚϵͳ·þÎñÖÐMysqlÏà¹ØµÄ·þÎñûÓÐÆô¶¯ £¨Çë²é¿´ÕýÈ·°²×°MysqlµÄ·½·¨£©
2¡¢ÔÚϵͳµÄ system32£¨C:\windows\system32£© Ŀ¼ÏÂȱÉÙ libmcrypt.d
Ïà¹ØÎĵµ£º
1£º apache·þÎñÆ÷°²×°.apache_2.0.59-win32-x86-no_ssl.msi¡£
ÐÞ¸Äconf\httpd.confÖеÄÎļþ£¬ÐÞ¸ÄλÖÃΪ£º
DocumentRoot "c:/webpage" ÉèÖÃÐéÄâĿ¼ c:/webpage.
DirectoryIndex index.html index.html.var index.php
==ʹapache·þÎñÆ÷ʶ±ðphpµÄÀ©Õ¹Ãû¡£
ÔÚ<Directory "c:/pr ......
Ê×ÏÈ˵×î¸ù±¾µÄ½â¾ö·½·¨£º
ÊÖ »ú·ÃÎÊʱ£¬»á¸½´ø·¢ËÍuser-agentÐÅÏ¢£¬Õâ¸öÐÅÏ¢ÀïÃæ»áÓÐÊÖ»úºÅÂëÐÅÏ¢£¬ÄÇôÈç¹ûÄÜÈ¡µÃÊÖ»úºÅÂ룬Ôò¿ÉÒԿ϶¨ÊÇͨ¹ýÊÖ»úwap·ÃÎʵġ£µ«ÊÇĿǰÖÐ ¹úÒÆ¶¯ÒѾÆÁ±ÎÁËuser-agentÐÅÏ¢£¬ËùÒÔ»ñÈ¡²»µ½ÊÖ»úºÅÂë¡£ÓйØÏµµÄÅóÓÑ¿ÉÒÔÁªÏµÒƶ¯¹«Ë¾£¬°ÑwapÍøÕ¾·þÎñÆ÷µÄipÌá½»¸øÖйúÒÆ¶¯£¬¼ÓÈë°×Ãûµ¥ ºó¼´¿ÉÈ¡µ ......
<?php
//ÉùÃ÷Êý×é±äÁ¿
$arr = array('ÕÅÈý','ÀîËÄ','ÍõÎå','ÀîÃ÷');
//foreachÑ»·±éÀúÊý×é
foreach($arr as $key => $value){
//×¢Òâ“$value”ºó±ØÐëÒªÒ»¸ö¿Õ¸ñ£¬·ñÔòÊä³öµÄ½á¹û²»ÕýÈ·
echo "Öµ$value µÄϱêΪ$key<br/ ......
£Ûת×Ô£Ýhttp://hi.baidu.com/xiamishule/blog/item/dea92c09ef9acc9e0b7b8236.html
Ô´´úÂ룺
PHP»ñÈ¡IPµÄ·½·¨ÓÐÐí¶àÖÖ£¬<br />½ñÌìÏò´ó¼Ò×ܽáÁËÁùÖÖ·½·¨¡£
<br />PHP»ñÈ¡IP·½·¨Ò»£º
<?php
function GetIP() {
if(!empty($_SERVER["HTTP_CLIENT_ ......
Èç¹ûÄãʹÓÃÒ»Ãæ´ó¾µ×Ó×÷Ϊ³åÀ˰å»á·¢Éúʲô£¿»òÐíÄã»áÔڽ϶̵Äʱ¼äÄÚÕ÷·þº£ÀË£¬µ«ÊÇÄã¿Ï¶¨´ÓÄÚÐÄÉî´¦Ã÷°×£¬Õâ²»ÊdzåÀ˵ÄÕýÈ·Ñ¡Ôñ¡£Í¬ÑùµÄµÀÀíÒ²ÊÊÓÃÓÚPHP±à³Ì£¬¾¡¹ÜÕâÑùµÄÀà±ÈÌýÆðÀ´ÓÐһЩ¹Å¹Ö¡£ÎÒÃǾ³£Ìýµ½ÓÐÈËÊÔͼÓÃÒ»¸öÖÜÄ©¶àµãµÄʱ¼äÀ´Ñ§»áPHP£¬µ«ÊÇÇëË¡ÎÒÖ±ÑÔ£¬ÕâÊÇѧϰÕâÃűà³ÌÓïÑÔµÄÒ»Öַdz£Ôã¸âµÄ·½Ê½¡£
ΪºÎ资 ......