Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ : php

PHP MVC¡¢Ä£°åÒýÇ漰ȨÏÞÉè¼Æ

±¾ÎÄת×Ô"PHP°®ºÃÕß"£ºhttp://www.phpfans.org/?cat=1
Ò»°ãÓõ½“ÒýÇæ”Á½×Ö¶¼»á¸Ð¾õ±È½Ï¸ß¼¶£¬"Ä£°åÒýÇæ"ÕâËĸö×ÖÌýÆðÀ´ºÜ¸ßÉîµÄÑù×Ó£¬ÀàËÆÓÎÏ·3DÒýÇæ¡¢ZendÒýÇæµÈ£¬Æäʵ¶¼ÊÇ»£È˵ģ¬Æ­ÍâÐÐÈ˵ġ£ËùÒÔÔÚÎÒ³õѧPHPµÄÄǻᣬҲÒòΪÕâËĸö×Öµ¼ÖÂÁËÎÒ¾õµÃºÜÄѶøûÓÐÈ¥¿´Ëûµ½µ×ÊÇʲôÑùÒ»¸ö¶«Î÷£¬Ö±µ½ºÜ³¤Ê±¼äÒÔºóʹÓÃSmarty²ÅÕæÕýÁ˽âÄ£°åÒýÇæµÄÔ­ÀíºÍ×÷Óá£Smarty(http://smarty.php.net)£¬PHP¹Ù·½Ä£°åÒýÇ棬¿´Ãû×Ö¸øÈ˸оõÓ¦¸ÃºÜ¿ì£¬ÆäʵºÜÂý£¬¼´Ê¹ËûÓÐÔ¤±àÒë(ÁíÒ»¸ö¿´ÆðÀ´ºÜ¸ß¼¶µÄÃû´Ê£¬Í¬ÑùÒ²ÊÇ»£È˵ģ¬ÏÂÃæÎһὲµ½Õâ¸ö)¡£[×¢£ºÎҸղŵ㿪Smarty·¢ÏÖËû˵ËûÒѾ­²»ÊÇÒ»¸öPHP×ÓÏîÄ¿ÁË£¬º¹£¬¿´À´È·Êµ»£ÈË£¬¹þÍæЦ^_^]¡£ÆäʵÔÚPHPÀģ°åÒýÇæ°çÑÝ×ÅView(ÆäʵͨË×˵¾ÍÊÇÒ³Ã棬¿´Ó¢ÎÄÓÐʱºò»á¸øÈ˺ܸ߼¶µÄ´í¾õ)µÄ½ÇÉ«£¬ÕâÊÇÒ»¸öºÜÖØÒªµÄ½ÇÉ«£¬ÒòΪÓû§µÄ½»»¥°¡£¬½çÃæЧ¹û°¡µÈµÈ¶¼ÔÚÕâÀÕâÊÇ×îÖÕÓû§¿´µ½µÄÄãµÄϵͳµÄÑù×Ó¡£
¡¡¡¡¿ªÍ·¾Í˵ģ°åÒýÇ棬ֻÊǸú´ó¼Ò˵Ã÷Ò»ÏÂÕâ¸ö¶«Î÷ÆäʵûÓÐʲôÄÑÀí½âµÄ£¬Ã÷°×ÆäÔ­ÀíÒÔºóÄã»á·¢ÏÖËûÊÇÖ½ÀÏ»¢£¬ËùÒÔÄãÒªÓÐÐÅÐÄÄã»áºÜÇáËÉ¿´Íê´ËÎÄ¡£
¡¡¡¡ÎªÁ˸üºÃµÄ˵Ã÷Ä£°åÒýÇæËù°çÑݵĽÇÉ«£¬ÎÒ²»µÃ²»Ò²Ì¸Ì¸MVC¡£Õâ¸ö»°Ìâ¿ÖÅ»¥ÁªÍøÉÏ̸¼°µÄº ......

PHP ·ÖÒ³


·ÂGOOGLEºÍDiscuz·ÖÒ³º¯Êý(php)
Õâ¸öº¯ÊýÖ»ÐèÒª2¸ö²ÎÊý µ±Ç°Ò³ÂëºÍ×ÜÒ³Êý,$siteÊÇ·¾¶,ÎļþÃû¿ÉÒÔ°´×Ô¼ºµÄÐèÒªÐÞ¸Ä
Õâ¸öº¯Êý²»ÄÜ´«µÝÆäËû²ÎÊý,Èç¹ûÒª´«µÝÆäËû²ÎÊý,ÔÚº¯ÊýÀï×Ô¼º¼ÓÒ»¸ö²ÎÊý¾ÍÐÐÁË
<?php
//¼ÆÊý
$sql = “SELECT count(*) from `andycms_title`;”;
$numrs = mysql_query($sql) or die(mysql_error());
$numrow = mysql_fetch_row($numrs);
$num = $numrow[0]; //×ܼǼ
$total = ceil($num / $perpage); //×ÜÒ³Êý
//µ±Ç°Ò³Âë
if(!isset($_GET[‘page’]) preg_match(‘~[^0-9]+~’,($_GET[‘page’])) $_GET[‘page’] <= 0 $_GET[‘page’] > $total) $page = 1;
else $page = $_GET[‘page’];
$startnum = ($page-1) * $perpage; //¼Ç¼¼¯¿ªÊ¼Êý
?>
<?php
// Andy·ÖÒ³º¯Êý
function fenye ($p,$total)
{
global $site;
$prevs = $p - 10; if ( $prevs <= 0) { $prevs = 1; }
$prev = $prevs - 1; if ( $prev <= 0) {$prev = 1;}
$nexts = $p + 9; if ( $nexts > $total) { $nexts = $total; }
$next = $next ......

PHPºÍJAVA¿ª·¢µÄOAÐÔÄܱȽÏ

ÏÖÔÚ»¹ÓкܶàÈ˸㲻¶®PHPºÍJAVA¿ª·¢µÄЭͬOAµ½µ×ÓÐʲô²»Í¬£¬¶Ô×Ô¼ºµ½µ×ÓÐʲôӰÏ죬ÒÔÖÁÓÚ×ö³öÁË´íÎóµÄÑ¡Ôñ¶øêݺ¦ÎÞÇî¡£±ÊÕ߸ù¾ÝÁ½ÖÖ¼¼ÊõµÄÌصãÖØÐÂÕûÀíÁËÒ»¸ö¶Ô±È£¬¸ø¹ØÐÄЭͬOA¼¼ÊõµÄ¶ÁÕß×ö¸ö²Î¿¼¡£
         »ªÌ춯Á¦Ð­Í¬OAÊDzÉÓÃJAVA¼¼ÊõµÄµäÐÍ´ú±í£¬²¢¾ßÓÐһϵÁÐÓÅ»¯Éè¼Æ£¬ÔÚÐÔÄܱíÏÖ·½Ãæ·Ç³£ÓÅÐ㣬¸ÐÐËȤµÄ¿ÉÒÔµ½ÆäÍøÕ¾www.oa8000.comÉÏʵ¼Ê¿´Ò»Ï¡£
          Ò»¡¢ÓïÑԱȽÏ
       PHPÊǽâÊÍÖ´ÐеķþÎñÆ÷½Å±¾ÓïÑÔ£¬Ê×ÏÈphpÓмòµ¥ÈÝÒ×ÉÏÊÖµÄÌص㡣Óï·¨ºÍcÓïÑԱȽÏÏó£¬ËùÒÔѧ¹ýcÓïÑԵijÌÐòÔ±¿ÉÒԺܿìµÄÊìϤphpµÄ¿ª·¢¡£¶øjavaÐèÒªÏÈѧºÃjavaµÄÓï·¨ºÍÊìϤһЩºËÐĵÄÀà¿â£¬¶®µÃÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ·½·¨¡£ËùÒÔjava²»ÈçphpºÃѧ¡£
JavaÊ×ÏÈÒª±àÒë³É×Ö½ÚÂë.classÎļþ£¬È»ºóÔÚjavaÐéÄâ»úÉϽâÊÍÖ´ÐС£JavaµÄWeb¿ª·¢Ê×ÏÈ×îÈÝÒ×Ïëµ½µÄ¾ÍÊÇJSP£¨ÏÖÔÚÒѾ­µ½JSP2.0£©£¬Ô­À´µÄjavaµÄWeb¿ª·¢¶¼ÊÇÓÃservletÀ´ÊµÏֵģ¬ÓÃservletÀ´¿ª·¢ÐèÒª³ÌÐòÔ±ÔÚjavaµÄÔ´ÎļþÖÐǶÈë´óÁ¿µÄhtml´úÂë¡£ËùÒÔºóÀ´¾Í³öÏÖÁËJSP,JSP¿ÉÒÔ·½±ãµÄǶÈëµ½htmlÎļþµ±ÖУ¬Æäʵj ......

PHPºÍJAVA¿ª·¢µÄOAÐÔÄܱȽÏ

ÏÖÔÚ»¹ÓкܶàÈ˸㲻¶®PHPºÍJAVA¿ª·¢µÄЭͬOAµ½µ×ÓÐʲô²»Í¬£¬¶Ô×Ô¼ºµ½µ×ÓÐʲôӰÏ죬ÒÔÖÁÓÚ×ö³öÁË´íÎóµÄÑ¡Ôñ¶øêݺ¦ÎÞÇî¡£±ÊÕ߸ù¾ÝÁ½ÖÖ¼¼ÊõµÄÌصãÖØÐÂÕûÀíÁËÒ»¸ö¶Ô±È£¬¸ø¹ØÐÄЭͬOA¼¼ÊõµÄ¶ÁÕß×ö¸ö²Î¿¼¡£
         »ªÌ춯Á¦Ð­Í¬OAÊDzÉÓÃJAVA¼¼ÊõµÄµäÐÍ´ú±í£¬²¢¾ßÓÐһϵÁÐÓÅ»¯Éè¼Æ£¬ÔÚÐÔÄܱíÏÖ·½Ãæ·Ç³£ÓÅÐ㣬¸ÐÐËȤµÄ¿ÉÒÔµ½ÆäÍøÕ¾www.oa8000.comÉÏʵ¼Ê¿´Ò»Ï¡£
          Ò»¡¢ÓïÑԱȽÏ
       PHPÊǽâÊÍÖ´ÐеķþÎñÆ÷½Å±¾ÓïÑÔ£¬Ê×ÏÈphpÓмòµ¥ÈÝÒ×ÉÏÊÖµÄÌص㡣Óï·¨ºÍcÓïÑԱȽÏÏó£¬ËùÒÔѧ¹ýcÓïÑԵijÌÐòÔ±¿ÉÒԺܿìµÄÊìϤphpµÄ¿ª·¢¡£¶øjavaÐèÒªÏÈѧºÃjavaµÄÓï·¨ºÍÊìϤһЩºËÐĵÄÀà¿â£¬¶®µÃÃæÏò¶ÔÏóµÄ³ÌÐòÉè¼Æ·½·¨¡£ËùÒÔjava²»ÈçphpºÃѧ¡£
JavaÊ×ÏÈÒª±àÒë³É×Ö½ÚÂë.classÎļþ£¬È»ºóÔÚjavaÐéÄâ»úÉϽâÊÍÖ´ÐС£JavaµÄWeb¿ª·¢Ê×ÏÈ×îÈÝÒ×Ïëµ½µÄ¾ÍÊÇJSP£¨ÏÖÔÚÒѾ­µ½JSP2.0£©£¬Ô­À´µÄjavaµÄWeb¿ª·¢¶¼ÊÇÓÃservletÀ´ÊµÏֵģ¬ÓÃservletÀ´¿ª·¢ÐèÒª³ÌÐòÔ±ÔÚjavaµÄÔ´ÎļþÖÐǶÈë´óÁ¿µÄhtml´úÂë¡£ËùÒÔºóÀ´¾Í³öÏÖÁËJSP,JSP¿ÉÒÔ·½±ãµÄǶÈëµ½htmlÎļþµ±ÖУ¬Æäʵj ......

PHPÕýÔò±í´ïʽӦÓü¼ÇÉ

PHPÕýÔò±í´ïʽÖ÷ÒªÓÃÓÚ×Ö·û´®µÄģʽ·Ö¸î¡¢Æ¥Åä¡¢²éÕÒ¼°Ìæ»»²Ù×÷¡£Ê¹ÓÃÕýÔò±í´ïʽÔÚijЩ¼òµ¥µÄ»·¾³Ï¿ÉÄÜЧÂʲ»¸ß£¬Òò´ËÈçºÎ¸üºÃµÄʹÓÃPHPÕýÔò±í´ïʽÐèÒª×ۺϿ¼ÂÇ¡£
ÎÒµÄPHPÕýÔòÈëÃÅ£¬ÊÇÆðÔ´ÓÚÍøÉϵÄһƪÎÄÕ£¬ÕâƪÎÄÕÂÓÉdzÈëÉîµÄ²ûÊöÁËPHPÕýÔò±í´ïʽʹÓõķ½·¨£¬ÎÒ¾õµÃÊÇÒ»¸öºÜºÃµÄÈëÃŲÄÁÏ£¬²»¹ýѧ³É»¹ÊÇÒª¿¿¸öÈË£¬ÔÚʹÓõĹý³ÌÖУ¬»¹Êǻ᲻¶ÏµØÍü¼Ç£¬Òò´Ë·´·´¸´¸´µÄÔĶÁÁËÕâƪÎÄÕÂÓÐËÄÎå±é£¬¶ÔÓÚÆäÖÐһЩ±È½ÏÀ§ÄѵÄ֪ʶµã£¬ÉõÖÁÒªÓúܾòÅÄÜÏû»¯£¬µ«ÊÇÖ»ÒªÄܼû¼á³Ö×Å¿´Í꣬Äã»á·¢ÏÖ×Ô¼º¶ÔÓÚÕýÔòµÄÔËÓÃÄÜÁ¦¾Í»áÏÔÖøÌá¸ß¡£
PHPÕýÔò±í´ïʽµÄ¶¨Ò壺
ÓÃÓÚÃèÊö×Ö·ûÅÅÁкÍÆ¥ÅäģʽµÄÒ»ÖÖÓï·¨¹æÔò¡£ËüÖ÷ÒªÓÃÓÚ×Ö·û´®µÄģʽ·Ö¸î¡¢Æ¥Åä¡¢²éÕÒ¼°Ìæ»»²Ù×÷¡£
PHPÖеÄÕýÔòº¯Êý£º
PHPÖÐÓÐÁ½Ì×ÕýÔòº¯Êý£¬Á½Õß¹¦Äܲ¶à£¬·Ö±ðΪ£º
Ò»Ì×ÊÇÓÉPCRE£¨Perl Compatible Regular Expression£©¿âÌṩµÄ¡£Ê¹ÓÓpreg_”Ϊǰ׺ÃüÃûµÄº¯Êý£»
Ò»Ì×ÓÉPOSIX£¨Portable Operating System Interface of Unix £©À©Õ¹ÌṩµÄ¡£Ê¹ÓÃÒÔ“ereg_”Ϊǰ׺ÃüÃûµÄº¯Êý£»£¨POSIXµÄÕýÔòº¯Êý¿â£¬×ÔPHP 5.3ÒԺ󣬾Ͳ»ÔÚÍƼöʹÓ㬴ÓPHP6ÒԺ󣬾ͽ«±»ÒƳý£©
ÓÉÓÚPOSIXÕýÔò¼´½«ÍƳöÀúÊ·Îę̀£¬²¢Ç ......

ÔÚPHPÖÐͨ¹ýϵͳÐźÅÁ¿¼ÓËø·½Ê½»ñÈ¡µÝÔöÐòÁÐID

 Ç°Ò»Õó×Ó£¬Éè¼ÆLAJPʱÐèÒªÔÚPHPÖÐÉú³ÉΨһID£¬¿´ËÆС²ËÒ»µúÈ´×ÅʵÈÃÎÒΪÄÑÁË£¬ÔÚJavaÖÐÒ»¸öͬ²½·½·¨¼´¿É¸ã¶¨µÄÊ£¬µ«ÔÚPHPÖÐȴûÓкõĽâ¾ö˼·¡£
ÔÚÍøÉÏËÑÁËËÑ£¬ÓÐÁ½¸ö°ì·¨µ«¶¼²»Ì«ºÃ£ºÒ»¸öÊǼòµ¥µÄÒÔ½ø³ÌID+ʱ¼ä´Á£¬»ò½ø³ÌID+Ëæ»úÊýÀ´²úÉú½üËƵÄΨһID£¬Ëä¼òµ¥µ«¶ÔÓÚ×·Çó“ÍêÃÀ”µÄÎÒ²»Ô¸ÕâÑù´ÕºÏ£¬ÔÙ˵Apache2ÒÔºó½ø³Ì»áά³ÖÏ൱³¤µÃʱ¼ä£¬Éú³ÉµÄID·¢ÉúÅöײµÄ¼¸ÂÊ»¹ÊDZȽϴóµÄ£»µÚ¶þ¸ö˼·ÊÇͨ¹ýMysqlµÄ×ÔÔö×ֶΣ¬Õâ¸ö¾Í¸ü²»ÄÜ¿¼ÂÇÁË£¬Ð§ÂʵͲ»Ëµ£¬ÎÒµÄÉè¼ÆÀïѹ¸ù¾ÍûÊý¾Ý¿â¡£
µÝÔöIDµÄ»ñÈ¡ÊǸö¹ý³Ì£º
   1. ´ÓÈ«¾Öij¸ö´æ´¢ÖжÁÈ¡ID
   2. ¸øID¼Ó1
   3. ½«IDÖØдæÈëÈ«¾Ö´æ´¢
ÔÚ¶à½ø³Ì»òÏ̵߳ijÌÐòÖÐÐèÒª½«ÉÏÊö3²½×÷Ϊµ¥²½µÄÔ­×Ó²Ù×÷£¬²ÅÄܱ£Ö¤IDµÄΨһ¡£
JavaÖкܺýâ¾ö£¬ÕâÊÇÒòΪJava³ÌÐò´ó¶àÒÔ¶àÏ̷߳½Ê½ÔËÐУ¬Ã¿¸öÏ̶߳¼Äܹ²ÏíJava½ø³ÌÖеıäÁ¿£¬²¢ÄÜ·½±ãµÄ¼ÓÏß³ÌËø¿ØÖÆÏ̵߳ÄÔËתͬ²½¡£ÔÚPHPÖÐIDÈ«¾Ö´æ´¢Ã»ÎÊÌ⣬¿ÉÒÔ·ÅÔÚsessionÖУ¬´ó²»ÁË·ÅÔÚÎļþÖУ¬µ«½ø³Ì¼äͬ²½¾ÍÊÇÎÊÌâÁË¡£
ʵ¼ÊÉϽø³Ìµ÷¶È¡¢¹ÜÀíÊDzÙ×÷ϵͳÄں˱ØÐëʵÏֵŦÄÜ£¬½ñÌì½éÉܵÄÐźÅÁ¿£¨Ò²³ÆΪÐźŵƣ©¾ÍÊÇÔÚUnix/LinuxÉϽâ¾ö½ø³Ìͬ²½µÄÒ»Ïî¼¼ ......

PHPÊֲᷭÒëÈÕ¼Ç [6] Èô¸É½á¹¹¸Ä±ä

¹úÇ쳤¼Ù½«ÖÁ£¬ÕæÊÇ¿ªÐÄ¡£ÕâÁ½ÌìÓеãС¿Õ£¬·­ÒëÁËÊÖ²áÖеÄһЩÄÚÈÝ£¬ËãÊǸøPHPerÃǵÄÒ»¸öСÀñÎï¡£
±¾À´Ïë°ÑËùÓÐPHP5.3µÄÐÂÄÚÈݸø¸üÐÂÁË£¬µ«·¢ÏÖÊÖ²áÓкܴóµÄ¸Ä¶¯£¬ÓÈÆäÊÇһЩĿ¼½á¹¹Éϵķ¢¶¯¡£±ØÐëÏȸúÉÏÕâЩ¸Ä¶¯£¬·ñÔò±àÒë»á³ö´í£¬¸ü̸²»ÉϽøÒ»²½µÄ·­Òë¡£
ÕâÁ½ÌìÖ÷Òª×öÁËÒÔϹ¤×÷£º
1. ½«·­Òëƽ̨ǨÒƵ½SVN
PHP¹Ù·½µÄ°æ±¾¿ØÖÆϵͳÒѾ­ÍêÈ«¸Ä³ÉSVN¡£ÒëÕßµÄSVNÕʺÅÓëÔ­À´µÄCVSÕʺÅÏàͬ£¬Ö»ÐèÒª¼¤»îһϼ´¿É¡£¼¤»î·½Ê½¼ûreadme.first£¬ÎÒÒѾ­¸üе½SVNÀï¡£
2. ¿ØÖƽṹ
Ŀ¼½á¹¹¸Ä±ä£¬Ô­À´µÄµ¥¸öÎļþcontrol-structures.xml±»²ð·Ö³É¶à¸öÎļþ£¬·Åµ½"control-structures"Ŀ¼¡£
·­Ò룺
1) Ô­À´“for”ÕâÒ»²¿·ÖµÄδ·­ÒëµÄÄÚÈÝ¡£
2) goto PHP5.3ÐÂÔö
3) Ô­À´Ò»Ð©Â©ÒëµÄ´úÂë×¢ÊÍ
 
/phpdoc/zh/trunk/language/control-structures.xml
/phpdoc/zh/trunk/language
/phpdoc/zh/trunk/language/control-structures
/phpdoc/zh/trunk/language/control-structures/alternative-syntax.xml
/phpdoc/zh/trunk/language/control-structures/break.xml
/phpdoc/zh/trunk/language/control-structures/continue.xml
/phpdoc/zh/trunk/language/control-struc ......
×ܼǼÊý:2174; ×ÜÒ³Êý:363; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [354] [355] [356] [357] [358] 359 [360] [361] [362] [363]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ