×ðÁú¿­Ê±¹ÙÍøµÇ¼

thinkphp´î½¨ÇéÐÎ

thinkphpÊÇÒ»¸ö¿ªÔ´µÄmvc¿ò¼Ü£¬ËüÊÇÒÔphpÓïÑÔ×÷Ϊ¿ª·¢µÄ»ù´¡£¬ÒÔÃæÏò¹¤¾ß±à³ÌÍ·ÄÔΪָµ¼Í·ÄÔ£¬½«webÓ¦ÓóÌÐò¿ª·¢±äµÃÔ½·¢¼òÆӺ͸ßЧ¡£Ëæ×ÅËüµÄÒ»Ö±Éú³¤ºÍÍêÉÆ£¬Ô½À´Ô½¶àµÄ¿ª·¢Õß×îÏÈʹÓÃthinkphpÀ´¹¹½¨×Ô¼ºµÄwebÓ¦ÓóÌÐò¡£

±¾ÎĽ«ÏÈÈÝÔõÑùÔÚWindowsÇéÐÎÏÂʹÓÃXAMPPÀ´´î½¨ThinkPHPµÄ¿ª·¢ÇéÐΡ£

µÚÒ»²½£ºÏÂÔغÍ×°ÖÃXAMPP

Ê×ÏÈÐèÒªµ½¹Ù·½ÍøÕ¾£¨https://www.apachefriends.org/zh_cn/index.html£©ÏÂÔØ×îа汾µÄXAMPP£¬²¢Æ¾Ö¤ÌáÐѾÙÐÐ×°Öá£

ÔÚ×°ÖÃÀú³ÌÖÐÐèҪעÖصÄÊÇ£¬ÐèҪѡÔñ×°ÖÃPHPºÍMySQLÁ½¸ö×é¼þ£¬²¢½«ËüÃÇÉèÖÃΪЧÀÍ£¬ÕâÑù²Å»ª°ü¹ÜÔÚÏÂÁîÐÐÖÐʹÓá£

Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»

µÚ¶þ²½£ºÏÂÔØÏ¢ÕùѹThinkPHP

ÔÚ¹Ù·½ÍøÕ¾£¨http://www.thinkphp.cn/£©ÏÂÔØ×îа汾µÄThinkPHP£¬²¢½«Æä½âѹµ½XAMPP×°ÖÃĿ¼ÏµÄhtdocsĿ¼£¬ÈçͼËùʾ£º

µÚÈý²½£ºÉèÖÃVirtual Hosts

ÔÚXAMPPµÄ×°ÖÃĿ¼ÏÂÓÐÒ»¸öapacheconfextrahttpd-vhosts.confÎļþ£¬ÓÃÎı¾±à¼­Æ÷·­¿ª¸ÃÎļþ²¢¾ÙÐÐÈçÏÂÉèÖãº

<VirtualHost *:80>
    DocumentRoot "C:/xampp/htdocs/thinkphp/public"
    ServerName thinkphp.test
    <Directory "C:/xampp/htdocs/thinkphp/public">
        Options FollowSymLinks Indexes
        AllowOverride All
        Require all granted
    </Directory>
</VirtualHost>

µÇ¼ºó¸´ÖÆ

ÉÏÃæµÄÉèÖý«ÎÒÃǵÄThinkPHPÏîÄ¿ÉèÖÃΪÁËÒ»¸öVirtual Hosts£¬¸ÃÉèÖÃÖ¸¶¨ÁËÍøÕ¾µÄ¸ùĿ¼ºÍÓòÃû£¨thinkphp.test£©£¬²¢ÇÒÉèÖÃÁË.htaccessµÄÖØд¹æÔò¡£

×îºóÔÚWindowsµÄhostsÎļþÖÐÌí¼ÓÒ»Ìõ¼Í¼ÒÔ½«¸ÃÓòÃûÆÊÎöµ½±¾»úIPµØµã£º

127.0.0.1   thinkphp.test

µÇ¼ºó¸´ÖÆ

µÚËIJ½£ºÆô¶¯ApacheºÍMySQL

ÔÚXAMPP×°ÖÃĿ¼ÏÂÔËÐÐxampp-control.exe£¬Æô¶¯ApacheºÍMySQLЧÀÍ¡£

µÚÎå²½£º»á¼ûThinkPHP

ÏÖÔÚ¿ÉÒÔͨ¹ýä¯ÀÀÆ÷»á¼û http://thinkphp.test À´Éó²éÎÒÃǵÄThinkPHPÓ¦ÓóÌÐòÁË£¬ÈçͼËùʾ£º

×ܽá

ÒÔÉϾÍÊÇʹÓÃXAMPP´î½¨ThinkPHP¿ª·¢ÇéÐεİ취¡£Í¨¹ýʵ¼ùÎÒÃÇ¿ÉÒÔ·¢Ã÷£¬ÉèÖÃVirtual HostsµÄÀûÒæÊÇÔ½·¢ÎÞа£¬¿ÉÒÔÖ§³Ö¶à¸öÕ¾µã²¢ÇÒÔÚ¿ª·¢Àú³ÌÖÐʹÓþø¶Ô·¾¶±ãÓÚµ÷ÊÔ¡£Í¬Ê±½¨ÒéÔÚ¿ª·¢Àú³ÌÖÐʹÓÃSublime TextµÈ±à¼­Æ÷£¬²¢ÅäºÏʹÓÃComposerÀ´ÖÎÀíÒÀÀµ¡£

ÒÔÉϾÍÊÇthinkphp´î½¨ÇéÐεÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ