PHP³ÌÐò¿ª·¢¸ßЧµÄWEBϵͳ
PHPÊÇÒ»¸öºÜÓÅÐãµÄ¹¤¾ß£¬Ëü¿ÉÒÔ¼òµ¥£¬Ò²¿ÉÒÔ¸´ÔÓ¡£²»Ò»ÑùµÄÏîÄ¿£¬Ó¦¸ÃÓò»Ò»ÑùµÄPHP¡£
СÏîÄ¿ - ¼òµ¥¶øÖ±½ÓµÄPHP
Ò»°ã¶ÔÓÚÒ»¸ö¹¦ÄÜÒ³ÃæÔÚ20ÒÔϵÄÍøÕ¾£¬ÎÒÃÇ¿ÉÒÔÓÃÒ»¸öºÜ¼òµ¥µÄ¿ò¼Ü½á¹¹À´Ð´¡£ÔÚÕâ¸ö¹æÄ£ÉÏ£¬ÎÒ½¨ÒéÊÇʹÓñȽÏÖ±½ÓµÄÃæÏò¹ý³Ì±àÂë·½·¨£¬ÔÒòºÜ¼òµ¥£¬Ã»ÓбØÒª°ÑclassÎļþŪµÄN ¶à£¬½á¹ûcontrollerÀï±ß¾ÍÒ»¸önew¾ÍÍêÁË¡£µ±È»£¬ÐèÇóƵ·±±ä»¯µÄÏîÄ¿³ýÍâ¡£
ÔÚÕâ¸ö¼¶±ðÉÏ£¬phpÓŵã±íÏֵĺÜÃ÷ÏÔ£º¿ìËÙ¿ª·¢£¬Ò»Ä¿ÁËÈ»¡£È±µãͬʱҲ±»Òþ²ØµÃºÜºÃ¡£
ÖÐÐÍÏîÄ¿ - ½á¹¹ÓÅÃÀµÄOO»¯µÄPHP
¶ÔÓÚÒ»¸öÖÐÐÍÏîÄ¿£¬ÎÒ½¨ÒéʹÓÃÒ»¸öÁ¼ºÃÉè¼ÆµÄ¿ò¼ÜÀ´×ö£¬Õâ¸ö¿ò¼Ü¿ÉÒÔÊÇ»ùÓÚMVCÄ£ÐÍ£¬·â×°ÁËÖÚ¶àµ×²ã²Ù×÷µÄ£¬µ±È»£¬Ò»¶¨ÒªÓÐÒ»¸öºÃµÄ×îºÃÊÇ͸Ã÷µÄcache»úÖÆ£¬ÕâÑù£¬ÎÒÃÇΪÁËÊÊÓ¦±ä»¯¶ø¼ÓÈëµÄOO»úÖÆ¿ÉÒÔÔËÐеøü¿ì¸üºÃ¡£
ÔÚÕâ¸ö¼¶±ðÉÏ¡£phpµÄȱµã¿ªÊ¼Í¹ÏÖ£¬Ïñ¶ÔOOÖ§³ÖµÄ²»ÍêÕû(Õâ¸öPHP5Óкܴó¸Ä½ø)£¬Ö»Äܵ¥Ïß³Ìģʽ¡£ÁíÍâһЩÍâΧ¹¤¾ß¿ªÊ¼³öÏÖȱ·¦Ö§³Ö£¬ÏñPHPûÓкõÄÖع¹¹¤¾ß£¬Ã»Óкõļ¯³Éµ½IDEÖеĵ¥Ôª²âÊÔ¹¤¾ß¡£Óŵ㵱Ȼ»¹ÊÇÔÀ´µÄ¿ìËÙ¿ª·¢£¬¹ã·ºµÄ¿ÉÓõĿªÔ´×ÊÔ´¡£
´óÐÍÏîÄ¿ - À©Õ¹¡¢ÓÅ»¯ºóµÄPHP
ÕâÀïµÄ´óÐÍÏîÄ¿£¬¼òµ¥µÄÖ¸·Ö²¼Ê½ÏîÄ¿£¬¾ÍÊÇ˵£¬ÄãµÄ³ÌÐòÐèÒª±»²¿ÊðÔÚN̨·þÎñÆ÷ÉÏÁË¡£ÔÚÕâ¸ö²ã¼¶ÉÏ£¬PHP±ÈÆðj2eeµÄȷȱ·¦ºÜ¶àÖ§³Ö¡£ÎÒÔøºÍshadowÔÚ735ÉÏÏêϸÌÖÂÛ¹ýPHPÒªÔÚ´óÐÍϵͳÉÏÓ¦ÓÃÐèÒª½â¾öµÄһЩÎÊÌ⣬µ±È»ÕâЩÎÊÌâ²»¹âÊÇPHPÕâ¸öÓïÑÔµÄÎÊÌ⣬Ҳ°üÀ¨ÁËÖܱ߿ª·¢µÄÎÊÌ⣺
1 PHPµÄÒ³Ãæ´úÂë¹²Ïí£¬PHPµÄÔ´´úÂë±»ÔØÈëÄÚ´æÒ»´ÎÒԺ󣬾ÍÔÚÆäÖб£Áô - Õâ¸öÓÃAPCºÍZendµÄÓÅ»¯Æ÷¿ÉÒԸ㶨¡£
2 PHPÒ³ÃæÖ®¼äµÄÊý¾Ý¶ÔÏó¹²Ïí£¬a.phpºÍb.phpÖ®¼ä¿ÉÒÔ¹²ÏíÒ»¸öÊý¾Ý¶ÔÏ󣬱ÈÈçÊý×飬Õâ¸öÏÖÔÚ¿ÉÒÔÓÃÐòÁл¯À´×÷£¬µ«ÊÇ»áÓÐÎļþio£¬Õâ¿é¿ÉÒÔÓù²ÏíÄÚ´æ»òÕßmemcachedÀ´´¦Àí¡£
3 PHPµÄÊý¾Ý¿âÁ¬½Ó³Ø£¬ÒòΪÔÚ¶àÇ°¶ËµÄÇé¿öÏ£¬PHP¿ØÖƲ»×¡¶ÔÊý¾Ý¿âµÄÁ¬½Ó£¬ËùÒÔÐèÒªÔÚÊý¾Ý¿âÇ°±ßÈ¥×÷Ò»¸öÁ¬½Ó³Ø£¬ÀàËÆÓÚsqlrelayµÄ¶«Î÷¡£ÁíÍâÊý¾Ý»º´æÒ²ÊǺÜÖØÒªµÄ£¬´óѹÁ¦¿ª·¢ÓÐÒ»¸ötip£¬¾ÍÊÇÄܲ»¶¯Êý¾Ý¿â¾Í²»Òª¶¯Êý¾Ý¿â¡£
4 PHPµÄÇ°¶Ëcacheϵͳ¡£Ò»¸ö͸Ã÷µÄ¿É¿ØÖƵÄcache»úÖÆ£¬È·±£ÍøÕ¾µÄÒ³ÃæÒÔ×îÉÙ´ÎÊý²éѯÊý¾Ý¿â¡£Õâ¸öÓкܶàʵÏÖ£¬µ«ÊÇûÓÐÕÒµ½ÌرðºÃµÄ¡£
5 Ò»¸öPHPÓ¦Ó㬳ɹ¦µÄ½â¾öµ÷Õ⼸¸öÎÊÌâÒÔºó£¬Ó¦¸¶ÉÔ΢´óÒ»µãµÄѹÁ¦ÊÇûÓÐʲôÎÊÌâµÄ¡£
ÔÚÕâ¸ö¼¶±ðÉÏ£¬ÖØÒªµÄÊÇ
Ïà¹ØÎĵµ£º
define("DB_SERVER","127.0.0.1");
define("DB_PORT",3306);
define("DB_CATALOG","uab");
define("DB_USERID","root");
define("DB_PASSWORD","");
$dsn="mysql:host=".DB_SERVER.";port=".DB_PORT.";dbname=".DB_CATALOG;
self::$__PDO=new PDO($dsn, DB_USERID, DB_PASSWORD);
//support long connection
self:: ......
ÍøÉÏ¿´ÁËsession.save_pathºÃÏñÕâ¸ösessionÎÒ»¹Ã»ÓÐÔõôÓùýÄØ£¬¿´À´ÓбØÒªÑо¿Ò»Ï°¡
½ñÌìÌØÒâµÄ¿´ÁËÒ»ÏÂÎĵµ£¬¿´Ò»ÏÂÎĵµÈ·ÊµÓÐÕâô¶«Î÷£¬Ò²Ã»Óп´µ½Ê²Ã´Àý×Ó¾Í×Ô¼ºËæ±ãµÄдÁËÒ»µã¿´¿´
´úÂëÈçÏ echo session.save_path
´ò¿ªä¯ÀÀÆ÷²é¿´¾¹È»ÏÔʾ sessionsave_path ²»¶Ô°¡£¬Ôõô»áÊÇÕâ¸öÄØ£¬¿´¿ ......
£¨×ª×Ôhttp://www.jb51.net/article/20829.htm£©
ÕâÀï½éÉÜÒ»¸öÖ±½Ó½«excelÎļþµ¼ÈëmysqlµÄÀý×Ó¡£ÎÒ»¨ÁËÒ»ÍíÉϵÄʱ¼ä²âÊÔ£¬ÎÞÂÛµ¼Èë¼ò·±Ì嶼²»»á³öÏÖÂÒÂ룬·Ç³£ºÃÓá£
PHP-ExcelReader,ÏÂÔصØÖ·: http://sourceforge.net/projects/phpexcelreader
˵Ã÷£º
²âÊÔ»·¾³£ºMYSQLÊý¾Ý¿â²ÉÓÃutf8±àÂë.µ¼ÈëEXCELÎĵµÊÇxls¸ñʽ,¾¹ ......
¸ÚλְÔð
»¥ÁªÍøÏà¹Ø²úÆ·¿ª·¢£¬ÏîÄ¿¿ª·¢£¬ÏµÍ³Î¬»¤µÈ
ÈÎÖ°ÒªÇó
1. ¾«Í¨PHP¿ª·¢ÓïÑÔ£¬ÊìϤÃæÏò¶ÔÏóµÄÈí¼þÉè¼Æ·½·¨£»
2. ÊìϤUnix/Linux²Ù×÷ϵͳ£¬ÊìϤC/C++±à³Ì£¬ÊìϤShell½Å±¾±à³Ì¼°³£ÓÃUnix¹ÜÀíÃü
ÁÊìϤbash/python/perl£»
3. ÊìϤHTTPÐÒé¼°W3CÏà¹Ø»¥ÁªÍø¹æ·¶£¬ÊìÁ·ÕÆÎÕXHTML¡¢CSS¡¢ ......