fedoraÏÂphp»·¾³.txt
°²×°mysql
==================
1.yum install mysql*
2.Æô¶¯:/sbin/service mysqld start
°²×°php
=================
1.yum install php
2.²é¿´php°²×°Ä¿Â¼:whereis php
°²×°lighttpd
=================
1.yum install lighttpd
2.yum search lighttpd(¼ì²âlighttpdûÓб»°²×°µÄÒÀÀµ°ü)
3.yum install lighttpd-fastcgi.i686(±ØÐë)
4.yum install li9ghttpd-mod_mysql_vhost.i686
ÅäÖÃlighttpd.conf
==========================
1.vim /etc/lighttpd/lighttpd.conf
2.´ò¿ªserver.modulesÖеÄÄ£¿é:mod_rewrite¡¢mod_redirect¡¢mod_alias¡¢mod_access¡¢mod_setenv¡¢mod_fastcgi¡¢mod_proxy¡¢mod_compress¡¢mod_accesslog
3.Ìí¼ÓÓû§lighttpd,¾ö¶¨ÓÉËûÆô¶¯lighttpd
4.fastcgi.server = (".php" = >
("localhost" => (
"socket" => "/var/run/lighttpd/php-fastcgi.socket",
"bin-path" => "/usr/bin/php-cgi",
"max-procs" => 2,
"bin-environment" => (
"PHP_FCGI_CHILDREN" => "5",
"PHP_FCGI_MAX_REQUESTS" => "3"
),
)))
5.Ìí¼ÓÒ»¸öÐéÄâÖ÷»ú,½øÐлù±¾·ÃÎʲâÊÔ
Ìí¼Ó£º$HTTP["host"] == "www.test.com" {
server.document-root = "/data/www/test"
}
6.hostsÖеØÖ·°ó¶¨
7.ÔÚÆäËû»úÆ÷ÉϵÄhostsÖа󶨵ØÖ·ip www.test.com
8×¢Òâ·À»ðǽ£¬Èç¹ûÕý³£·ÃÎÊ£¬¹§Ï²Äã!
Ïà¹ØÎĵµ£º
ÔÚPHPÖУ¬ÎļþÉÏ´«Ò»°ãÊÇͨ¹ýmove_uploaded_file£¨£©À´ÊµÏֵġ£
bool move_uploaded_file ( string filename, string destination )±¾º¯Êý¼ì²é²¢È·±£ÓÉ filename Ö¸¶¨µÄÎļþÊǺϷ¨µÄÉÏ´«Îļþ£¨¼´Í¨¹ý PHP µÄ HTTP POST ÉÏ´«»úÖÆËùÉÏ´«µÄ£©¡£Èç¹ûÎļþºÏ·¨£¬Ôò½«ÆäÒƶ¯ÎªÓÉ destination Ö¸¶¨µÄÎļþ¡£
Èç¹û filename ²»ÊǺϷ ......
ÏÂÃæÊÇһЩ·Ç³£ÓÐÓõÄPHPÀà¿â£¬ÏàÐÅÒ»¶¨¿ÉÒÔΪÄãµÄWEB¿ª·¢Ìṩ¸üºÃºÍ¸üΪ¿ìËٵķ½·¨¡£
ͼ±í¿â
ÏÂÃæµÄÀà¿â¿ÉÒÔÈÃÄãºÜ¼òµÄ´´½¨¸´ÔÓµÄͼ±íºÍͼƬ¡£µ±È»£¬ËüÃÇÐèÒªGD¿âµÄÖ§³Ö¡£
pChart - Ò»¸ö¿ÉÒÔ´´½¨Í³¼ÆͼµÄ¿â¡£
Libchart - ÕâÒ²ÊÇÒ»¸ö¼òµ¥µÄͳ¼Æͼ¿â¡£
JpGraph - Ò»¸öÃæÏò¶ÔÏóµÄͼƬ´´½¨Àà¡£
Open F ......
Ö÷ҪʹÓÃÁË int substr_count ( string haystack, string needle [, int offset [, int length]] ) Õâ¸ö·½·¨,Õâ¸ö·½·¨±éÀú´ý²âµÄ×Ö·û´®$strÖÐÓÐûÓÐ$allergicWordÊý×éÖÐËù°üº¬µÄÃô¸Ð´Ê£º
$allergicWord = array('Ôà»°','ÂîÈË»°');
$str = 'Õâ ......
ʲôÊÇPHP
¡¡¡¡PHP´ú±íÁË"³¬Îı¾´¦ÀíÆ÷"£¬ÕâÒâζ×ÅÄã±ØÐëÖªµÀ£¬ËüÊÇÒ»ÖÖ·þÎñÆ÷¶ËµÄ´¦ÀíÓïÑÔ£¬ÇÒÒÔHTMLµÄÐÎʽ³öÏÖ¡£Ëü×î³£Óõĵط½¾ÍÊÇÍøÒ³ÁË£¬Êý¾Ý´Ó¿Í»§»ú·¢Ë͵½Web·þÎñÆ÷£¬ÐÅÏ¢Ôڴ˱»´¦Àí²¢·µ»Ø½á¹û¡£
¡¡¡¡µ«ÕâÖÖͨÓÃÐÔµÄÓïÑÔË¿ºÁ²»¾ÖÏÞÓÚÔÚÍøÒ³·½Ã棬PHPÒ²Äܱ»ÓÃÔÚÃüÁîÐÐshellÖУ¬Ëü¿É×÷Ϊ²Ù×÷ϵͳµÄÒ»¸öÀ©Õ¹£¬ÓÉ´ËÖ´Ð ......
ʲôÊÇ IDE?
¡¡¡¡¼ò¶øÑÔÖ®£¬IDE Ϊ±àÂ빤×÷ÌṩÁËһվʽ·þÎñ¡£IDE °üÀ¨Ò»¸ö±à¼Æ÷£¬Ôڴ˱à¼Æ÷ÄÚ¿ÉÒԱ༴úÂë¡¢µ÷ÊÔ´úÂë¡¢ÔÚä¯ÀÀÆ÷(ͨ³£ÊÇǶÈëʽµÄ)Öв鿴´úÂëºÍÇ©ÈëºÍÇ©³öÔ´Âë¿ØÖÆ¡£ÎªÁËÖ§³ÖÕâЩ¹¦ÄÜ£¬IDE ÓµÓÐÒ»Ì×ÔÚ»ù±¾±à¼Æ÷(±ÈÈç¼Çʱ¾»òÕß Vim)ÖÐËùÕÒ²»µ½µÄÌØÐÔ¡£µ±È»£¬Äú¿ÉÒÔͨ¹ýÀ©Õ¹±à¼Æ÷À´ÊµÏÖÕâЩ¹¦ÄÜ£¬µ«ÊÇ ID ......