PHPÂëÅ©½ø»¯Ê·1_Zend
Zend-PHP±àÂë¹æ·¶
1.¶ÔÓÚÖ»°üº¬PHPµÄÎļþ£¬"?>"ÊDz»ÔÊÐí´æÔڵġ£×¢ÊÍ£º·Àֹĩβ±»ÒâÍâµÄ×¢Èë¿Õ°×²¢ÏÔʾÊä³ö¡£
2.Ëõ½øӦʹÓÃËĸö¿Õ¸ñµÄËõ½ø£¬¶ø²»Ê¹ÓÃÖƱí·ûTAB¡£
3.Ò»ÐÐ80¸ö×Ö·ûÊDZȽϺÏÊʵģ¬×î¶àΪ120×Ö·û¡£
4.ÐеĽáÊø·ûÖ»ÄÜÊDZê×¼µÄUNIXÎı¾ÎļþµÄ»»ÐУ¬»»ÐзûÔÚÎļþÖбíʾΪ10£¬»ò16½øÖÆµÄ 0x0A¡£
²»ÒªÊ¹ÓÃwindowsµÄ»Ø³µ»»ÐÐ×éºÏ(0x0D,0x0A)¡£
5.ÀàµÄÃüÃûÖ»ÔÊÐíÓÐ×ÖĸÊý×Ö×Ö·û£¬²»¹ÄÀøʹÓÃÊý×Ö¡£Ï»®ÏßÖ»ÔÊÐí×ö·¾¶·Ö¸ô·û¡£ÀýÈçZend/Db/Table.phpÎļþ¶ÔÓ¦µÄÀàµÄÃû³ÆΪZend_Db_Table¡£Èç¹ûÀàÃû°üº¬¶à¸öµ¥´Ê£¬ÄÇôÿһ¸öµ¥´ÊµÄµÚÒ»¸ö×Öĸ±ØÐë´óд¡£Á¬ÐøµÄ´óдÊDz»ÔÊÐíµÄ£¬Èç"Zend__PDF"ÊDz»ÔÊÐíµÄ£¬¶ø"Zend_Pdf"ÊÇ¿ÉÒÔ½ÓÊܵġ£*Óû§µÄ´úÂë×îºÃ²»ÒªÒÔZend_¿ªÍ·¡£
6.½Ó¿ÚÀà¹æ¶¨Í¬ÉÏ£¬µ«×îºó±ØÐëÒÔ"Interface"½áβ¡£Èç"Zend_Pdf_Interface".
7.Ö»ÓÐ×ÖĸÊý×Ö×Ö·û£¬Ï»®ÏߺͶ̺áÏß"-"¿ÉÓ㬿ոñÊDz»ÔÊÐíµÄ¡£
°üº¬ÈκÎphp´úÂëµÄÎļþ±ØÐëÒÔ".php"À©Õ¹ÃûΪ½áβ.ͬÑùÐèÒª×ñÑÀàÃûµÄ¹æÔò.
8.º¯ÊýÃûֻʹÓÃ×ÖĸÊý×Ö×Ö·û£¬²»¹ÄÀøʹÓÃÊý×Ö,Ï»®ÏßÊDz»ÔÊÐíµÄ¡£
º¯ÊýÃû×ÜÊÇÒÔСд¿ªÍ·£¬µ«º¯ÊýÃû°üº¬¶à¸öµ¥´Ê£¬Ã¿¸ö×ÓµÄÊ××Öĸ±ØÐë´óд£¬×ñÑ“Íշ唸ñʽ¡£
¹ÄÀøʹÓó¤µÄÃû×Ö£¬ÕâÑùÈÝÒ×Àí½â´úÂë¡£
¶ÔÓÚÃæÏò¶ÔÏó±à³Ì£¬¶ÔÏóµÄ·ÃÎÊÆ÷×ÜÊÇÒÔ"get","set"Ϊǰ׺¡£µ±Ê¹ÓÃÉè¼ÆģʽÈ絥̬ģʽ(singleton)»ò¹¤³§Ä£Ê½(factory),·½·¨µÄÃû×ÖÓ¦µ±°üº¬Ä£Ê½µÄÃû×Ö£¬ÕâÑùÈÝÒ×´ÓÃû×Öʶ±ðÉè¼Æģʽ.
ÔÚ¶ÔÏóÖеķ½·¨£¬ÉùÃ÷Ϊ"private"»ò"protected"µÄ£¬Ãû³ÆµÄÊ××Ö·û±ØÐëÊÇÒ»¸öµ¥¸öµÄÏ»®Ïߣ¬ÕâÊÇΨһµÄÏ»¬ÏßÔÚ·½·¨Ãû×ÖÖÐʹÓõķ½·¨¡£ÉùÃ÷Ϊ"public"µÄ´Ó²»ÒÔÏ»®Ïß¿ªÍ·¡£
È«¾Öº¯Êý£¨"floating functions"£©ÔÊÐíµ«ÊDz»¹ÄÀøʹÓ㬽¨Òé°ÑÕâÀຯÊý·â×°µ½¾²Ì¬ÀàÀï¡£
9.±äÁ¿Ö»°üº¬Êý×Ö×Öĸ×Ö·û£¬²»¹ÄÀøʹÓÃÊý×Ö£¬Ï»®Ïß²»½ÓÊÜ¡£
ÉùÃ÷Ϊ"private"»ò"protected"µÄÀà³ÉÔ±±äÁ¿Ãû±ØÐëÒÔÒ»¸öµ¥¸öÏ»®Ïß¿ªÍ·£¬ÕâÊÇΨһµÄÏ»®ÏßÔÚ±äÁ¿ÃûÖеÄÓ÷¨£¬ÉùÃ÷Ϊ"public"µÄ´Ó²»ÒÔÏ»®Ïß¿ªÍ·.
±äÁ¿Ãû×ÜÒÔСд×Öĸ¿ªÍ·²¢×ñÑ“ÍÕ·åʽ”ÃüÃûÔ¼¶¨¡£
¹ÄÀøʹÓÃÈß³¤µÄÃû×Ö£¬ÕâÑùÈÝÒ×Àí½â£¬³ý·ÇÔÚСѻ·ÖУ¬²»¹ÄÀøʹÓüò½àµÄÃû×Ö"$i"»ò"$n"Ö®ÀàµÄ¡£
Èç¹ûÓÐÒ»¸öÑ»·³¬¹ýÁË20ÐдúÂ룬Ë÷ÒýµÄ±äÁ¿Ãû×Ö±ØÐëÓиöÃèÊöÐÔÒâÒåµÄÃû×Ö¡£
²úÁ¿°üº¬Êý×Ö×Öĸ×Ö·û¶ñ»¯Ï»®Ïߣ¬Êý×ÖÔÊÐí×÷Ϊ³£Á¿Ãû¡£
³£Á¿Ãû×ÖËùÓÐ×Öĸ±ØÐë´óд.
²úÁ¿Öеĵ¥´Ê±ØÐë¼ÓÏ»¬Ïß¡£
²úÁ¿±ØÐëͨ¹ý"const"¶¨ÒåΪÀàµÄ³
Ïà¹ØÎĵµ£º
<?
$music = $_POST['music'];
//È¡µÃËùÑ¡ÖеÄcheckboxµÄ¸öÊý
$coun=count($music);
if ( is_array( $music ) ) {
echo 'ÄúÑ¡ÔñµÄÊÇ : ';
foreach ( $music as $key => $var )
echo ' ['.$var.']';
......
PHPChina¡¾Ö£ÖÝ¡¿ÈÏÖ¤ÖÐÐÄ- -PHPÈ«Äܰࣨ2009Äê11ÔÂ14ÈÕ¿ª¿Î£©
¸Ä±äÖ°ÒµÈËÉú£¬³É¾ÍеÄÊÂÒµ£¬PHP--È«Çò×îÈÈÃÅÍøÕ¾¿ª·¢¼¼Êõ£¡
¹úÄÚÅÅÃûÇ°Ê®ÃûµÄÍøÕ¾ÖÐʹÓÃPHPµÄÓÐ8¼Ò£º°Ù¶È¡¢ÌÚѶÍø¡¢ÐÂÀË¡¢ËѺü¡¢ÍøÒס¢ÌÔ±¦¡¢ÑÅ»¢Öйú¡¢TomÔÚÏß¡£¹úÄÚ½üÁ½ÄêÐÂÍƳöµÄweb2.0ÍøÕ¾ÖУ¬ÓÐ80£¥Ê¹Óà ......
1.Ç°ÃæһƪÎÄÕÂÏêϸ½éÉÜÁËÈçºÎÔÚWindowsÏÂÕûºÏapache+mysql+php+tomcat,ºÜ¼òµ¥£¬µ«ÊÇÔÚLinuxϾÍûÕâôÈÝÒ×ÁË£¬ÐèÒªÊÖ¹¤µÄȥдÅäÖÃÎļþ£¬ÍøÉϵÄ×ÊÁÏÓкܶ࣬µ«ÊÇÎÒ¸ù¾ÝËûÃǵÄд·¨£¬Ò»²½Ò»²½µÄÅäÖû¹ÊÇûÄÜsuccess!£¨¿ÉÄÜÊÇÎÒ¸öÈ˵ÄÔÒò£¬²»¹ý£¬ÎÞÂÛÔÚGoogle»¹ÊÇbaiduËѵ½µÄÎÄÕ¾ÍÄÇô¼¸Æª£¬Õâ¸öתһÏ£¬ÄǸöתһÏ£¬×îºó¶¼² ......
жÔØMysql
[root@localhost ~]# rpm -qa | grep mysql
mysql-3.23.58-9
php-mysql-4.3.4-11
mod_auth_mysql-20030510-4.1
mysql-server-3.23.58-9
˵Ã÷£ºrpm –qa | grep mysql ÃüÁîÊÇΪÁË°ÑmysqlÏà¹ØµÄ°ü¶¼ÁгöÀ´£¬Ð¶Ôض¼´Ó×îÏÂÃæµÄÒ»¸ö°ü¿ªÊ¼£¬Ö±µ½Ð¶ÔصôµÚÒ»¸öΪֹ¡£Ö´ÐÐrpm -q php£¬Èç¹û·µ»Øphp°æ±¾£¬ ......