Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

phpѧϰ±Ê¼Ç

µÚÒ»Õ   PHP¸ÅÊö
1¡¢  »ù±¾Óï·¨
a)         Òª°ÑphpǶÈëÒ³Ã棬¿ÉÒÔ°ÑËü·ÅÔÚPHP±êÇ©ÄÚ
<?php       ?>
b)         ÔÚbody±êÇ©½áÊø֮ǰ£¬²åÈëphp´úÂë
c)         Ï£ÍûÕýÈ·ÔËÐÐphp£¬±ØÐë±£Ö¤ÕýÔÚͨ¹ýURLÔËÐнű¾£¬webä¯ÀÀÆ÷ÖеØÖ·±ØÐëÒÔhttp:¿ªÍ·¡£ÒÔfile:¿ªÍ·Ôò¿Ï¶¨³öÎÊÌâ¡£
d)         Èç¹ûµÃµ½ÎÊÕÒµ½Îļþ´íÎó£¨Â·¾¶´í 404£©£¬Ôò¼ì²éÎļþĿ¼ÊÇ·ñ·Å´í
 
 
×¢Ò⣺php²»·Ö´óСд   Echo ºÍeCHo ºÍechoµÈ¼Û
           ÔÚ´òÓ¡Ë«ÒýºÅºÍµ¥ÒýºÅ×÷ΪÏûÏ¢µÄÒ»²¿·ÖµÄʱºò£¬ÒªÐ¡ÐÄ£¨ÐèҪתÒ壩
 
´òÓ¡ÌØÊâ×Ö·û
1¡¢ ²ð·Ö
2¡¢ תÒå
echo “she said , \”how are you !\””;  // ºìɫΪתÒ岿·Ö
 
²âÊÔʱ Èç¹û¿´µ½ÍêÈ«¿Õ°×Ò³Ã棬¿ÉÄÜÊÇ html´úÂëÎÊÌâ
 
echo ºÍprintÒ²³£ÓÃÓÚ·¢ËÍ html´úÂ룬 È磺
         echo ‘<p>Hello <strong>World!</strong>’</p>;
 
¿Õ°×£º phpÒ»°ã»áºöÂÔ¿Õ°×£¬ echoÖеĻ»ÐÐÖ»ÄÜÔì³ÉhtmlÔ´Âë»»ÐУ¬²»»áÔÚä¯ÀÀÆ÷ÖÐÏÔʾ
×¢ÊÍ
         HtmlÖеÄ×¢ÊÍÔÚÔ´ÎļþÖпÉÒÔ¿´µ½
         PhpÖеÄ×¢Ê͸ù±¾²»»á·¢Ë͵½webä¯ÀÀÆ÷£¬×îÖÕÓû§²»»á¿´µ½ËüÃÇ
PHPµÄÈýÖÖ×¢ÊÍ
1¡¢  ÓñàºÅ·ûºÅ×¢ÊÍ
# µÚÒ»ÖÖ×¢ÊÍ
2¡¢  ÓÃÁ½¸öб¸Ü×¢ÊÍ
// µÚ¶þÖÖ×¢ÊÍ
3¡¢  ¶àÐÐ×¢ÊÍ
/* ÕâһƬ¶¼ÊÇ×¢ÊÍ
  µÚ¶þÅÅ»¹ÊÇ
*/
±à³ÌÏ°¹ß£º ÿ¸ö½Å±¾¶¼Ó¦¸Ã°üº¬¼¸Ìõ½âÊÍÐÔµÄ×¢ÊÍ£¬Áгö´´½¨ÈÕÆÚ¡¢ÐÞ¸ÄÈÕÆÚ¡¢´´½¨Õß¼°ÆäÁªÏµÐÅÏ¢
 
Óï·¨
      ±äÁ¿
1¡¢  ±äÁ¿Ãû±ØÐëÒÔÃÀÔª·ûºÅ£¨$£©¿ªÍ·
2¡¢  ÃÀÔª·ûºÅºóÃæµÚÒ»¸ö×Ö·û²»ÄÜÊäÊý×Ö
3¡¢  ¿ÉÒÔʹÓÃ=¸ø±äÁ¿¸³Öµ
4¡¢  ÎÞÐèÒýºÅ¼´¿É´òÓ¡±äÁ¿
5¡¢  ¿ÉÒÔÔÚË«ÒýºÅÄÚ´òÓ¡±äÁ¿
print  “hello $name”;
6¡¢  ²»ÄÜÔÙµ¥ÒýºÅÄÚ´òÓ¡±äÁ¿
 
×¢Ò⣺PHP´¦Àí±äÁ¿µÄ·½Ê½·Ç³£Áé»î£¬²»±Ø³õʼ»¯»òÉùÃ÷£


Ïà¹ØÎĵµ£º

PHPÊý¾Ý½á¹¹——ÏßÐÔ±íµÄɾ³ý

function delete_array_element($arr,$i) {
$len = count($arr);
for($j=$i; $j<$len; $j++) {
$arr[$j] = $arr[$j+1];
}
array_pop($arr);//½«Êý×éµÄ×îºóÒ»¸öµ¥Ôªµ¯³ö
return $arr;
}
for($i=0; $i<10; $i++) {
$arr1[$i] = $i+1;
}
print_r($arr1);
echo "< ......

windows 7ÏÂÈçºÎ°²×°Apache + PHP + MySQL + SVNµÈµÈ

½üÀ´¶Ôphp±È½Ï¸ÐÐËȤ£¬¾Í¶Ï¶ÏÐøÐøµÄ»¨ÁËÁ½¸öÐÇÆÚµÄʱ¼ä°ÑÕû¸öphp¿ª·¢ÐèÒªÓõ½µÄ¶«Î÷¶¼×°ºÃÁË£¬´ó¸ÅµÄ°²×°¹ý³ÌÈçÏ¡£
Ò»¡¢°²×°µÄÈí¼þ:
Apache: 2.2.14
PHP:5.2.12
MySQL:5.1.42¡£
SVN:1.5.6
PHPMyAdmin:3.2.5
Zend Studio: 7.1
Zend Debugger: 5.1.14
¶þ¡¢°²×°¹ý³Ì£º
1. °²×°ºÍÅäÖÃapache
°²×°£ºÊ×ÏÈ´Óhttp://apa ......

php urlencode()

ÔÚPHPÖÐÓÐurlencode()¡¢urldecode()¡¢rawurlencode()¡¢rawurldecode()ÕâЩº¯ÊýÀ´½â¾öÍøÒ³
URL±àÂë½âÂëÎÊÌâ¡£
ÔÚASPµÄʱºòURL±àÂë½âÂëºÜÊÇÄÕ»ð£¬Server.urlencode²»Ì«ºÃÓã¬Óöµ½utf-8±àÂëµÄµØÖ·¸üÊÇÂé
·³¡£ÄãÒª»ñÈ¡°Ù¶È¡¢Googleµã»÷µ½ÍøÕ¾µÄÍøÖ·Á´½ÓÖеĹؼü×Ö£¬ÒªÐ´ÉÏÒ»¶Ñ×Ô¶¨Ò庯ÊýÀ´µÃµ½urldecodeµÄЧ¹û¡£
ժ¼һƪ¹Ø ......

³É¾ÍPHP¸ßÊÖµÄÎå¸ö±ØÓÉ֮·

¾­³£ÓÐһЩ¾­Ñé²»×ãµÄPHP¿ª·¢ÈËÔ±ÔÚFreenodeµÄphp
IRCƵµÀÉÏÎÊÎÊÌâ¡£Èç¹ûÎÊÌâºÜËöË飬»òÕß´ð°¸ÏÔ¶øÒ×¼û£¬»ò±íÏÖµÃÏóÒ»¸ö²ËÄñ£¬ºÜ¿ìËûÃǾͻᷢÏÖ»áÊܵ½ÈçÏÂһЩ»Ø¸´µÄÅں䣺“È¥¶Á¸ÃËÀµÄÊÖ²áÈ¥°É”£¬“ºÃ
ºÃȥѧһѧPHP°É”£¬“ÎÒÃDz»ÊÇÄã¸öÈ˵ĵ¼Ê¦”»ò¸üÖ±½ÓµÄ“ÄãÐèÒª³ÉΪһ¸ö¸üºÃµ ......

[ת] Óà SWIG ¹¹½¨ PHP À©Õ¹

×÷ÕߣºMartin Streicher, Èí¼þ¿ª·¢ÈËÔ±, Pixel, Byte, and Comma
¾¡¹Ü±àдһ¸ö PHP À©Õ¹²¢²»ÊǺÜÀ§ÄÑ£¬¶ø SWIG µÄÈ·½øÒ»²½¼ò»¯ÁËÕâÏîÈÎÎñ£¬ÕâÖ÷ÒªÊÇÒòΪËü×Ô¶¯»¯Á˽áºÏ PHP Óë C »ò C++ ËùÐèµÄ¹¤×÷¡£Èô¸ø¶¨¶ÔÒ»¸öº¯ÊýµÄÃè»æ — º¯ÊýµÄÃû³Æ¼°ÆäÐβΠ— SWIG ¾Í»áÉú³ÉÒ»¸ö°ü×°³ÌÐòÀ´½« PHP ÓëµÍ²ã´úÂëÁ¬½ÓÆðÀ´¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ