Windows Ï Apache Mysql PHP °²×°ºóµÄÅäÖÃ
1 Apache
ÐÞ¸Ä documentroot ¸ùĿ¼
directory ·ÃÎʸùĿ¼ȨÏÞ
directoryindex ĬÈÏÊ×Ò³
<´ò¿ªwrite_modȨÏÞ>
¼ÓÔØÄ£¿é
Loadmodule php5_module
AddType Application/x-httpd-php .php
PHPIniDir
LoadFile libmcrypt.dll
LoadFile libmysql.dll
2 PHP
Session.save_path
extension.dir= \
¼ÓÔس£ÓõÄÄ£¿é
gd2 mbstring mcrypt mysql mysqli
Ïà¹ØÎĵµ£º
//Èç¹û$waitAckSecΪ0£¬Ôò·µ»Ø³É¹¦·¢Ë͵Ä×Ö½ÚÊý
//Èç¹û$waitAckSec´óÓÚ0£¬Ôò·µ»Ø·¢Ëͺó½ÓÊÕµ½µÄÄÚÈÝ
//ÈκÎÇé¿öÏ£¬Ê§°Ü¶¼·µ»ØFALSE
function SendUDP($host, $port, $buff, $waitAckSec=0)
{
$result = FALSE;
$socket = ($result=@socket_create(AF_INET, SOCK_DGRAM, SOL_U ......
1.ʲôÊÇMVC£¿
MVC±¾À´ÊÇ´æÔÚÓÚDesktop£¨×ÀÃ棩³ÌÐòÖеģ¬MÊÇÖ¸Êý¾ÝÄ£ÐÍ£¬VÊÇÖ¸Óû§½çÃ棬CÔòÊÇ¿ØÖÆÆ÷¡£Ê¹ÓÃMVCµÄÄ¿µÄÊǽ«MºÍVµÄʵÏÖ´úÂë·ÖÀë¡£MVCÊÇÒ»¸öÉè¼Æģʽ£¬ËüÇ¿ÖÆÐÔµÄʹӦÓóÌÐòµÄÊäÈ룬´¦ÀíºÍÊä³ö·Ö¿ª¡£Ê¹ÓÃMVCÓ¦ÓóÌÐò±»·ÖΪÈý¸öºËÐIJ¿¼þ£ºÄ£ÐÍ£¬ÊÔͼ£¬¿ØÖÆÆ÷¡£ËüÃǽ«´¦Àí×Ô¼ºµÄÈÎÎñ¡£
2.ΪʲôҪʹÓÃMVC?
Ê×Ï ......
ÔÚphpÖУ¬»ñµÃ¶þά»ò¶àάÊý×éµÄµÚһάµÄ³¤¶È£¬ÕâÊǸö³£ÓõijÌÐòÅжϣ¬±ÈÈçÄã¶ÁÈ¡µÄÊý×éÊÇÒ»¸ö¶þάÊý×飺
<?php
$arr=array(
0=>array('title' => 'ÐÂÎÅ1', 'viewnum' => 123, 'content' => 'ZAQXSWedcrfv'),
&nbs ......
ÔÚ[mysqld] ÏÂÌí¼Ó²ÎÊýÈçÏÂ
#´íÎóÈÕÖ¾Êä³ö·¾¶(ʹÓÃ/×÷Ϊ·Ö¸î¶ø²»ÊÇ\)
log-error="your error-log path"
log="Your mysql log path"
log-show-queries="Your slowquery path"
#É趨³¬Ê±Ê±¼ä ´Ë´¦ÉèÖÃΪÁ½Ãë
long_query_time=2
Ok save my.ini
next
#Í£Ö¹mysql ·þÎñ
net s ......