¹ØÓÚPHP Pear °²×°¼°Ê¹ÓÃ
££££££££££££££
°²×°pear
££££££££££££££
pearÊÇPHPµÄÀ©Õ¹ºÍÓ¦ÓóÌÐò¿â£¬°üº¬Á˺ܶàÓÐÓõÄÀ࣬°²×°ºÃphp5.0ºó£¬pearʵ¼ÊÉϲ¢Ã»Óб»°²×°£¬°²×°µÄ·½·¨ÈçÏ£º
1.ÔÚphpĿ¼ÖÐË«»÷go-pear.bat¡£
2.°´ÕÕÌáʾÊäÈëһЩÉèÖÃÐÅÏ¢£¬Ö÷ÒªÊÇÒª°Ñ¾ÖÓòÍøµÄÍø¹Ø¼ÓÉÏ£¬Èçhttp://192.168.0.1:80/ ,pearÒªÓÃÕâ¸öµØÖ··ÃÎÊInternet£¬ÈôÎÞ´úÀí·þÎñÆ÷ÔòÖ±½Ó»Ø³µ ,,ÎÒÊÇÖ±½Ó°´»Ø³µ.
3.È»ºó»áÌáʾһЩ°üºÍPHP°ó¶¨£¬Ñ¡ÔñY ¡£
4.È»ºó°²×°»ù±¾°üºÍÌáʾ°²×°³É¹¦£¬¾ÍÕâô¼òµ¥¡£
5.´ò¿ªwindowsĿ¼ÏµÄphp.iniÎļþ£¬È»ºó²éÕÒµ½Èçϵĵط½£º
; UNIX: "/path1:/path2"
;include_path = ".:/php/includes"
;
; Windows: "\path1;\path2"
;include_path = ".;c:\php\includes"
°Ñ×îºóÒ»ÐеÄ×¢ÊÍÈ¥µô£¬È»ºó°ÑºóÃæ·¾¶¸Ä³ÉÄãµÄPEAR·¾¶£¬ÀýÈ磺
include_path = ".;c:\php\pear\"
±£´æPHP.INI£¬È»ºóÖØÐÂÆô¶¯APACHE¼´¿É¡£
£££££££££££££££
pearÃüÁî°ïÖú
£££££££££££££££
ÔÚÄãµÄPHP¸ùĿ¼ÖпÉÒÔÕÒµ½PEAR.batÎļþ£¬ÕâÊǹÜÀípearµÄÃüÁÔÚCMDÖÐʹÓã¬ÒªÉèÖû·¾³±äÁ¿PATH£¬»òË«»÷Éú³ÉµÄEV_XXX.REGÎļþ¡£ËüµÄ²¿·ÖÃüÁÄÜÈçÏ£º
°²裝£º
×Ô網·°²裝ijһ個pear³Ìʽ庫£º
¡¡¡¡pear install packagename
ÏÂ載 packages µ«²»°²裝£º
¡¡¡¡pear download packagename
¡¡¡¡pear download-all
°²裝ÒÑÏÂ載µÄpackage£º
¡¡¡¡pear install filename.tgz
ÁÐ±í£º
Ä¿Ç°pear網Õ¾ÉÏËùÓпÉÈ¡µÃpear³Ìʽ庫ÁÐ±í£º
¡¡¡¡pear remote-list
ÁгöÒÑ°²裝package£º
¡¡¡¡pear list
Áгö¿ÉÒÔÉý級µÄpackage£º
¡¡¡¡pear list-upgrades
¸üÐÂ(Éý級)£º
¸üÐÂpackage£º
¡¡¡¡pear upgrade packagename
¡¡¡¡pear upgrade-all
ÒƳý£º
刪³ýÒÑ°²裝µÄpackage£º
¡¡¡¡pear uninstall packagename
££££££££££££££££
°²×°Ðµİü
££££££££££££££££
±ÈÈçÄã´Óhttp://pear.php.net/package/ÏÂÔØÁËеİüxxx.tgz¡£
°ÑËü¿½µ½C:\PHP\PEAR\go-pear-bundleĿ¼£¬È»ºóÔÚCMDÖÐÊäÈ룺
pear install xxx.tgz
¾ÍÐÐÁË£¬Ïà¹ØÎļþ½
Ïà¹ØÎĵµ£º
.$dbhost = 'localhost';
$dbuser = 'root'; //ÄãµÄmysqlÓû§Ãû
$dbpass = '123456'; //ÄãµÄmysqlÃÜÂë
$dbname = 'data'; //ÄãµÄmysql¿âÃû
//Á¬½Ó±¾µØÊý¾Ý¿â
$GLOBALS["conn"] = mysql_connect($dbhost,$dbuser,$dbpass);
//´ò¿ªÊý¾Ý¿â
mysql_select ......
php³£ÓÃÀàÕûÀí
ʱ¼ä£º2009-12-19 20:45 À´Ô´£ºÈËÁ¦·½ ×÷Õߣºsyuanq µã»÷£º548
ÔÚʵ¼Ê¿ª·¢¹ý³Ì»á¾³£»áÓöµ½Ò»Ð©Öظ´µÄ²Ù×÷£¬Èç¹ûÿ´Î¶¼Òª×Ô¼ºÈ¥ÊµÏÖÕâÎÞÒɼÓÖØÁË×Ô¼ºµÄ¹¤×÷Á¿£¬ÏÂÃæ¶ÔһЩ¿ÉÄܾ³£Óõ½µÄÀà×ö¸öÕûÀí£º
ͼ±í¿â
ÏÂÃæµÄÀà¿â¿ÉÒÔÈÃÄãºÜ¼òµ¥¾ÍÄÜ´´½¨¸´ÔÓµÄͼ±íºÍͼƬ¡£µ±È»£¬ËüÃÇÐèÒªGD¿âµÄÖ§³Ö ......
תÔØÇë×¢Ã÷³ö´¦: http://www.zvv.cn/blog/show-101-1.html
¡¡¡¡Ç°Ð©Ìì·¢ÏÖͨ¹ýNotepad++µÄDBGP²å¼þ½áºÏPHPµÄxdebugÀ©Õ¹¿ÉÒÔʵÏÖPHPÎļþµ÷ÊÔ£¬Í¬Ê±£¬½éÉÜ˵°üº¬Á˵¥²½µ÷ÊÔ¡¢¼àÊÓ±äÁ¿»¹Óпç Îļþµ÷ÊÔ¡£°´ÕÕÍøÂçÉϵÄ×ÊÁÏÅäÖúõ÷ÊÔ»·¾³ºóʵ¼ÊÊÔÓÃÁË·¢ÏÖ¹¦ÄܽÏΪ¼òª£¬µ¥Îļþµ÷ÊÔ»¹¿É£¬Èç¹ûÊÇ¿çÎļþµ÷ÊÔÏîÄ¿¾Í²»ÄÇôÊæ·þÁË£¬ ......
// ¶¨ÒåÒ»¸öбäÁ¿
$test = "hello";
// . ×Ö·û´®Á¬½Ó·û
echo $test.".world" // hello.world
echo "$test.world" // "" ÖеıäÁ¿½«±»½âÎö³ÉÏàÓ¦µÄÖµ
&nbs ......
µ±Ç°ÍøÖ·ÊÇä¯ÀÀÆ÷ÀíÏÔʾµÄÍøÖ·£¬ÊÇÓû§¿´µ½µÄ¡£
¸ù·¾¶ÊÇphpÎļþÔÚ·þÎñÆ÷ÉϵÄ·¾¶£¬ÊÇÕæʵµÄÎļþ·¾¶¡£
(ÓëjavaÊDz»Ò»ÑùµÄ)
Èç¹ûÓжà²ãincludeÓï¾ä£¬±ØÐëÓøù·¾¶£¬·ñÔò³ö´í¡£
Ìá½»±íµ¥Ê±ÒªÌá½»µ½µ±Ç°ÍøÖ·µÄÏà¶Ô»òÕß¾ø¶ÔµÄÍøÖ·ÀïÃæ¡£
---------------------------------------------------------------------
Ò»¸öÊÇÍ ......