Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

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


Ïà¹ØÎĵµ£º

Ò»¸öPHPµÄUDPº¯Êý

//Èç¹û$waitAckSecΪ0£¬Ôò·µ»Ø³É¹¦·¢Ë͵Ä×Ö½ÚÊý
//Èç¹û$waitAckSec´óÓÚ0£¬Ôò·µ»Ø·¢Ëͺó½ÓÊÕµ½µÄÄÚÈÝ
//ÈκÎÇé¿öÏ£¬Ê§°Ü¶¼·µ»ØFALSE
function SendUDP($host, $port, $buff, $waitAckSec=0)
{
    $result = FALSE;
    $socket = ($result=@socket_create(AF_INET, SOCK_DGRAM, SOL_U ......

PHP MVC ѧϰ ThinkPHP

1.ʲôÊÇMVC£¿
MVC±¾À´ÊÇ´æÔÚÓÚDesktop£¨×ÀÃ棩³ÌÐòÖеģ¬MÊÇÖ¸Êý¾ÝÄ£ÐÍ£¬VÊÇÖ¸Óû§½çÃ棬CÔòÊÇ¿ØÖÆÆ÷¡£Ê¹ÓÃMVCµÄÄ¿µÄÊǽ«MºÍVµÄʵÏÖ´úÂë·ÖÀë¡£MVCÊÇÒ»¸öÉè¼Æģʽ£¬ËüÇ¿ÖÆÐÔµÄʹӦÓóÌÐòµÄÊäÈ룬´¦ÀíºÍÊä³ö·Ö¿ª¡£Ê¹ÓÃMVCÓ¦ÓóÌÐò±»·ÖΪÈý¸öºËÐIJ¿¼þ£ºÄ£ÐÍ£¬ÊÔͼ£¬¿ØÖÆÆ÷¡£ËüÃǽ«´¦Àí×Ô¼ºµÄÈÎÎñ¡£
2.ΪʲôҪʹÓÃMVC?
Ê×Ï ......

php»ñµÃ¶þά»ò¶àάÊý×éµÄµÚһάµÄ³¤¶È

ÔÚphpÖУ¬»ñµÃ¶þά»ò¶àάÊý×éµÄµÚһάµÄ³¤¶È£¬ÕâÊǸö³£ÓõijÌÐòÅжϣ¬±ÈÈçÄã¶ÁÈ¡µÄÊý×éÊÇÒ»¸ö¶þάÊý×飺
<?php
$arr=array(
                 0=>array('title' => 'ÐÂÎÅ1', 'viewnum' => 123, 'content' => 'ZAQXSWedcrfv'),
  &nbs ......

¿ªÆôMYSQLÈÕÖ¾ÅäÖÃ

ÔÚ[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 ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ