ʹÓà CodeIgniter ¿ò¼Ü¿ìËÙ¿ª·¢ PHP Ó¦ÓÃ(¶þ)
¶þ·ÖÖÓ: ½¨Á¢Ò»¸ö CodeIgniter ÍøÕ¾
ÓÃCI½¨Ò»¸öÍøÕ¾ºÜÈÝÒס£ ÕâÒ»Õº̣ܶ¬½âÊÍÁËÓÃCIÖÆ×÷Íøվʱ·¢ÉúÁËЩʲô£¬ÄÄЩÎļþ±»´´½¨£¬ÈÃÎÒÃÇÀ´ÇÆÒ»ÇÆ£º
. ´´½¨ÍøÕ¾ÐèҪʲôÈí¼þ£¿
. °²×° CI Îļþ: Ò»¸ö¼òµ¥µÄÏÂÔغͽâѹËõ²Ù×÷
. CI µÄ»ù±¾ÉèÖÃ: ÓÐÄÄЩÎļþ¼Ð¼°ËüÃÇÊÇÈçºÎ×éÖ¯µÄ
. CI °²×°Ê±Ä¬ÈϵĿØÖÆÆ÷ºÍÊÓͼ
. һЩ¼òµ¥µÄÐÞ¸ÄÀ´ÑÝʾCIÈçºÎÔË×÷
×¼±¸ÖªÊ¶
CodeIgniter ÓнϺõİ汾¼æÈÝÐÔ¡£ Ëü¹¤×÷ÔÚPHP 4.3.2 ¼°ÒÔÉÏ°æ±¾, »ò PHP 5¡£ÓÉÓÚ´ó¶àÊýISP»¹²»Ö§³Ö PHP 5, Ö§³ÖPHP 4 °æ±¾ÊÇÓÐÓõġ£
Ä㻹ÐèÒªÒ»¸öÊý¾Ý¿â¡£ CI µÄÔÚÏßÊÖ²á˵: " ±»Ö§³ÖµÄÊý¾Ý¿âÊÇ MySQL ¡¢ MySQLi ¡¢ MS SQL ¡¢ Postgre ¡¢Oracle¡¢ SQLite ºÍODBC¡£ "
ΪÁËÒª¿ª·¢²¢²âÊÔÒ»¸ö¶¯Ì¬µÄÍøÕ¾£¬ÄãÐèÒªÒ»¸öWeb·þÎñÆ÷¡£Í¨³££¬Äã»áÔÚ±¾µØ·þÎñÆ÷ÉÏ¿ª·¢²¢²âÊÔÄãµÄÍøÕ¾,Ò²¾ÍÊÇ, ÕâЩÈí¼þÔËÐÐÔÚÄã×Ô¼ºµÄ»úÆ÷ÉÏ (127.0.0.1 »ò localhost), Ò»°ãÀ´½², ¿ª·¢»·¾³²»»á½¨Á¢ÔÚÔ¶³Ì·þÎñÆ÷ÉÏ¡£
Èç¹ûÄã²»ÊìϤÈçºÎ·Ö±ð½¨Á¢±¾µØ¿ª·¢»·¾³, ¿ÉÒÔÑ¡ÔñÒ»¸öÌ××°Èí¼þ£¬ÏñÊÇ Xampplite, Ò»´Î¹ý°²×°APACHE¡¢ PHP ºÍ MySQL£¬¼¸ºõ²»ÐèÒªÐÞ¸ÄÉèÖÃÎļþ¡£ Xampplite ÊÇÃâ·ÑµÄ,Óмòµ¥Ò׶®µÄ°²×°Ö¸ÄÏ¡£
Ä㻹ÐèÒªÒ»¸ö³ÆÐÄµÄ PHP ±à¼Æ÷¡£ ËùÓеıàÂ빤×÷¶¼¿ÉÒÔÔÚÎı¾±à¼Æ÷ÖÐÍê³É¡£ÌṩÓï·¨¸ßÁÁ¹¦ÄܺÍÃüÁî×Ô¶¯²¹Æ빦Äܵıà¼Æ÷»á¸üÀíÏëһЩ£¬ÒòΪËü¿ÉÒÔ°ïÖúÒ»°ãˮƽµÄ³ÌÐòÔ±½ÚԼʱ¼ä¡£
Ò»µ©Äã×öºÃÁËÕâЩ׼±¸¹¤×÷£¬ÎÒµ£±£ÄãÔÚÁ½·ÖÖÓÄھͿÉÒԸ㶨CI°²×°¹¤×÷
°²×° CodeIgniter
ÔÙ´ÎÉùÃ÷£¬CIÊÇÍêÈ«Ãâ·ÑµÄ!
½¨Á¢ºÃ¿ª·¢»·¾³ºó, È¥ CodeIgniter ÍøÕ¾£º
http://www.codeigniter.com/
ºÍÏÂÔØ×îаæµÄ¿ò¼Ü¡£ 1.5.4 °æÊÇ×îаæ, ÊÇÒ»¸öÖ»ÓÐ 737KB µÄѹËõÎļþ, ¼¸ÃëÖ־ͿÉÒÔÏÂÔØÍê³É¡£
½âѹËõÕâ¸öÎļþ£¬°ÑËüÊͷŵ½ÍøÕ¾¸ùĿ¼ÖС£ Èç¹ûÄãÕýÔÚʹÓà Xampplite £¬Í¨³£ÔÚ Xampplite Îļþ¼ÐÀïÃæµÄ htdocs Îļþ¼Ð¡£
CodeIgniter index.php ÎļþÓ¦¸ÃÔÚ¸ùĿ¼ÖС£Õâʱ£¬Èç¹ûÄãÔÚä¯ÀÀÆ÷ÉÏ´ò¿ª http://127.0.0.1. ÄãÒ²¾Íʵ¼Ê´ò¿ªÁË´ËÎļþ¡£ ÎÒÃÇÓÃ1-2·ÖÖÓµÄʱ¼äÀ´½¨Á¢Ò»¸ö¿ÉÔËÐеÄÍøÕ¾!
ºÍ CI °üº¬ÔÚÒ»ÆðÊÇÒ»¸ö¼òµ¥Ò׶®µÄÓû§ÊÖ²á.(ÔÚ user_guide Îļþ¼ÐÖÐ) Ä㽫»á¾³£Óõ½Ëü¡£ËüµÄÄÚÈݺÜÏêϸ£¬Ï¸¹ýÕâƪÎÄÕ£¬ËùÒÔ£¬ÐèҪʱ£¬Çë¾³£²éÔÄËü¡£
µ±ÕâЩÎļþ±£´æÔÚÄãµÄ»úÆ÷ÉϵÄʱºò£¬Óжþ¸ö·½·¨À´·ÃÎÊËûÃÇ:
. ͨ¹ýURL£¬http://127.0.0.1
. ¾¹ýÕý³£µÄĿ¼·¾¶: ¾ÙÀýÀ´Ëµ, C:/xampplite/htdocs/index.php
ÄãÓ¦¸Ãͨ¹ýä¯ÀÀÆ÷·ÃÎÊ CI µÄĬÈ
Ïà¹ØÎĵµ£º
/*** Function: PHP header() examples (PHP)
**
Desc: Some examples on how to use the header() function of PHPYou find
a detailed tutorial at expertsrt.com (English) or at ffm.junetz.de
(German).These is also a good help about caching at web-caching.com.
**
Example: see below.
<br/& ......
×¢Òâ:ÒýÓÃ"·ÊÕ¼µÄ²©¿Í http://fatjames.extjs.org.cn/archives/40"
mysql5.x sql-mode ÒýÆðµÄ´íÎó
½ñÌì°²×°Á˸ömysql5.0,ÄÃÁËÒ»¸öºÜ¾Ã֮ǰÍøÉÏϵijÌÐò¼ì²éÒ»ÏÂÊÇ·ñ¹¤×÷Õý³£.
·¢ÏÖÒÔÇ°µÄ³ÌÐò¾ÓÈ»²»ÄÜÕý³£ÔËÐÐ,ÌáʾÐÅÏ¢ÈçÏÂ:
Database error: Invalid SQL: INSERT INTO
Survey_UserHistory(userId,jobId,type ......
ÔÎÄ£º»ùÓÚ
PHPµÄcURL¿ìËÙÈëÃÅ
Ó¢ÎÄÔÎÄ£ºhttp://net.tutsplus.com/tutorial ... for-mastering-curl/
ÔÎÄ×÷ÕߣºBurak
Guzel
cURL
ÊÇÒ»¸öÀûÓÃURLÓï·¨¹æ¶¨À´´«ÊäÎļþºÍÊý¾ÝµÄ¹¤¾ß£¬Ö§³ÖºÜ¶àÐÒ飬ÈçHTTP¡¢FTP¡¢TELNETµÈ¡£×îˬµÄÊÇ£¬PHPÒ²Ö§³Ö cURL
¿â¡£±¾ÎĽ«½éÉÜ cURL µÄһЩ¸ß¼¶ÌØÐÔ£¬ÒÔ¼°ÔÚPHPÖÐÈçºÎÔËÓÃËü¡ ......
PHPÊÇʹÓÃ×îΪ¹ã·ºµÄ¿ªÔ´·þÎñÆ÷¶Ë½Å±¾ÓïÑÔÖ®Ò»£¬µ±È»PHP²¢²»ÊÇËÙ¶È×î¿ìµÄ£¬µ«ËüÈ´ÊÇ×î³£ÓõĽű¾ÓïÑÔ¡£ÕâÀïÓÐ50¸öÓÐÒæµÄPHP¹¤¾ß£¬¿ÉÒÔ´ó´óÌá¸ßÄãµÄ±à³Ì¹¤×÷£º
µ÷ÊÔ¹¤¾ß
Webgrind
Xdebug
Gubed PHP Debugger
DBG
PHP_Debug
PHP_Dyn
MacGDBp
²âÊÔºÍÓÅ»¯¹¤¾ß
PHPUnit
SimpleTest
Selenium
PHP_CodeSniff ......
²Ù×÷ϵͳ: windows xp
php°æ±¾:5.2.5 http://www.php.net/downloads.php
Apache http server °æ±¾:2.2.6http://httpd.apache.org/download.cgi
Mysql°æ±¾: 6.0.3http://dev.mysql.com/get/Downloads/MySQL-6.0
1.apacheµÄ°²×°:
1)Ë«»÷apache_2.2.6-win32-x86-no_ssl.msiͼ±ê£¬Æô¶¯apache°²×°³ÌÐò£»
2£©°²×°ÒÔÒ»¸ö»¶Ó ......