windowsÏÂapache,mysql,php°²×°ÈÕ¼Ç
½ñÌì·ÏÁËÒ»ÌìµÄʱ¼äÀ´´Óаѻ·¾³´î½¨ºÃ£º×ö¸ö±Ê¼Ç
°²×°Ë³Ðò£º
apache->php->mysql
һЩעÒâµÄµØ·½¼ÇÏÂÀ´°É£º
1. apache Ö§³Ö php
apache ÅäÖÃÎļþÏ£ºÐèÒªÐ޸ĵĵط½£º
i. PHPIniDir "F:/programs/php/"
ii. LoadModule php5_module "F:/programs/php/php5apache2_2.dll"
2. php µÄÉèÖÃ
i. include_path
ii. extension_dir
3. php Á¬½Ó mysql
i. ×¢Ê͵ôÏà¹Ø extension
ii. extension = php_mysql.dll
iii. »òÕß extension = php_pdo.dll, extension = php_pdo_mysql.dll
iiii. »¹ÓÐЩ»áÓõ½µÄÏà¹ØµÄ extension
4. ÉèÖÃÐéÄâ·þÎñÆ÷
i. ÔÚ apache ÅäÖÃÎļþÀïÒÔ Include ·½Ê½¼ÓÔØ
eg. Include F:/some/path/vitual_host.conf
ii. È»ºóÔÙ vitual_host.conf ÖÐÉèÖÃÏà¹ØÐéÄâÖ÷»ú
5. °ó¶¨ÓòÃû
i. ÔÚ C:\WINDOWS\system32\drivers\etc Ï嵀 host ÎļþÖмÓÉÏ ÓòÃû- ip Ó³Éä¹Øϵ
eg. 127.0.0.1 www.example.com example.com
˵Ã÷£º
php ÓÐÁ½ÖÖ·½Ê½°²×°
i. ÏÂÔØ°²×°³ÌÐò msi Îļþ
ii. ÏÂÔØ zip Îļþ£¬Õâ¸öÐèÒª½Ï¶à×Ô¼ºÅäÖÃ
php µÄ²âÊÔ¹¤¾ß xDebug ½«ÏÂÃæµÄ·Åµ½ php.ini ÖÐ
[xdebug]
zend_extension_ts="F:\programs\php\ext\php_xdebug-2.0.5-5.2.dll"
xdebug.profiler_enable = off
xdebug.profiler_enable_trigger = 1
xdebug.profiler_output_name = cachegrind.%p.out
xdebug.profiler_output_dir = "F:\programs\php\tmp\XDebug"
-----XDebug µÄÏà¹ØÎĵµÔÚ£º http://www.xdebug.org/docs/profiler
Ïà¹ØÎĵµ£º
<?php
class SubPages{
private $each_disNums;//ÿҳÏÔʾµÄÌõÄ¿Êý
private $nums;//×ÜÌõÄ¿Êý
private $current_page;//µ±Ç°±»Ñ¡ÖеÄÒ³
private $sub_pages;//ÿ´ÎÏÔʾµÄÒ³Êý
private $pageNums;//×ÜÒ³Êý
private $page_array = array();//ÓÃÀ´¹¹Ôì·ÖÒ³µÄÊý×é ......
1.ʹÓà ip2long() ºÍ long2ip() º¯ÊýÀ´°Ñ IP µØַת»¯³ÉÕûÐÍ´æ´¢µ½Êý¾Ý¿âÀï¡£ÕâÖÖ·½·¨°Ñ´æ´¢¿Õ¼ä½µµ½Á˽ӽüËÄ·ÖÖ®Ò»£¨char(15) µÄ 15 ¸ö×Ö½Ú¶ÔÕûÐ뵀 4 ¸ö×Ö½Ú£©£¬¼ÆËãÒ»¸öÌض¨µÄµØÖ·ÊDz»ÊÇÔÚÒ»¸öÇø¶ÎÄÚÒ³¸ü¼òµ¥ÁË£¬¶øÇÒ¼Ó¿ìÁËËÑË÷ºÍÅÅÐòµÄËٶȣ¨ËäÈ»ÓÐʱ½ö½öÊÇ¿ìÁËÒ»µã£©¡£
2.ÔÚÑéÖ¤ email µØÖ·µÄʱºòʹÓà checkdnsrr() º ......
×î½üÁ½ÌìÏîÄ¿ÐèÒª£¬ÓÉÓÚ·þÎñÆ÷ÕýÔÚ¿ª·¢£¬¿Í»§¶Ë½ø¶ÈÉÔ¿ìһЩ£¬Ã»ÓзþÎñÆ÷½øÐÐÁªµ÷¡£Òò´ËÎÒÖزپÉÒµ£¬ÓÃPHP¿ìËÙµÄдÁËһЩwebÒ³Ã棬ËãÊǵ±²âÊÔ×®³ÌÐòÁË£¬Æ߰˸öweb½Ó¿Ú£¬»ù±¾ÉÏ5µ½6¸öСʱ¸ã¶¨ÁË¡£ÓÉÓÚµ±Ç°µÄ·þÎñÆ÷ÐèÒªÓëÆäËû·þÎñÆ÷½øÐжԽӣ¬Òò´ËдµÄÕâ¸öweb·þÎñ»¹ÐèÒª³äµ±client½ÇÉ«£¬ÏòÆäËû·þÎñÆ÷·¢ËÍÇëÇó¡£
ÔÚÍøÉÏËÑÁËÒ» ......
Ò»¡¢Ê²Ã´ÊÇPHP£¿PHPµÄ¸ÅÄîºÍ¼ò½é
¡¡¡¡PHPÊÇÒ»ÖÖÒ×ÓÚѧϰºÍʹÓõķþÎñÆ÷
¶Ë½Å±¾ÓïÑÔ¡£Ö»ÐèÒªºÜÉٵıà³Ì֪ʶÄã¾ÍÄÜʹÓÃPHP½¨Á¢Ò»¸öÕæÕý½»»¥µÄWEBÕ¾µã¡£±¾½Ì³Ì
²¢²»ÏëÈÃÄãÍêÈ«Á˽âÕâÖÖÓïÑÔ£¬Ö»ÊÇÄÜʹÄ㾡¿ì¼ÓÈ뿪·¢¶¯Ì¬webÕ¾µãµÄÐÐÁС£ÎÒ¼Ù¶¨ÄãÓÐһЩHTML£¨»òÕßHTML±à¼Æ÷£©µÄ»ù±¾ÖªÊ¶ºÍһЩ±à³Ì˼Ïë¡£
¡¡¡¡1.¼ò½é
¡¡¡¡PH ......
Õâ¶Îʱ¼äÔÚÒ»¸öµç×ÓÉÌÎñ¹«Ë¾´ýÔÚ£¬ËùÒÔ½Ó´¥µ½ºÜ¶àµç×ÓÉÌÎñµÄ¸ÅÄî¡£
Ò²½Ó´¥µ½ÁËÒ»¸öȫеĵç×ÓÉÌÎñģʽ¡£ÕâÀïÓÉÓÚÉæ¼°µ½Á˹«Ë¾µÄÓªÏú
²ßÂÔ·½ÃæµÄÉÌÎñ»úÃÜ£¬ËùÒÔ²»±ã¹ý¶àµÄ̸¼°¡£
²»¹ýÒ»¸öºÃµÄidea£¬×ÜÊǻṴÆðºÜ¶àµÄ²»Î·Ê§°ÜµÄ³¢ÊÔ¡£ÎҾʹÓ×î»ù
´¡µÄµç×ÓÉÌÎñ¿ªÊ¼ß·¡£
¸ÕºÃÓиöÅóÓÑ×¼±¸×öÊÖ»úµÄµç×ÓÉÌÎñ£¬ÓÃÇ°¼¸ÆªÎÄÕÂÌá ......