php ¼¼ÊõÄÚĻѧϰ2
1.php Êý¾ÝÀàÐÍ£º¸¡µãÐÍ,×Ö·û´®,ÕûÐÎ,Âß¼ÐÍ
2.$a="test"; print($a); ÔÚphp.ini ÖÐÉèÖÃerror_reporting=E_ALL ¾¯¸æ×´Ì¬Ê±£¬»áÓÐÌáʾ¡£´ËÓÃÓÚ²âÊÔ䶨ÒåµÄ±äÁ¿¡£¿ÉÒÔʹÓÃisset()¼ì²â±äÁ¿ÊÇ·ñ´æÔÚ,unsetÇå³ý±äÁ¿()£¬³£Á¿¶¨Òådefine("a","test");¶¨ÒåµÄ³£Á¿¾ßÓÐÈ«¾Ö×÷Óá£define ÎÞ·¨¶¨Òå¶ÔÏóµÄÊý¾Ý½á¹¹£¬²»¹ý¿ÉÒÔÏÈ´æ´¢±äÁ¿Ãû³Æ£¬È»ºóÔÙ´´½¨±äÁ¿Ê±ºòʹÓøÃÃû³Æ£¬²¢ÇÒÓÃÆäÖ±½Ó·ÃÎʶÔÏó print($age=29) ֵΪ29
$rows = mysql_num_rows($result);
if($rows === false) // true if MySQL error, false if row count zero
Ïà¹ØÎĵµ£º
xml񈬀<?php ?>
½Å±¾·ç¸ñ <script language="php"></script>
¶Ì±ê¼Ç<? ?>
asp񈬀<% %>
Èç¹ûÏëÖ§³Ö¶Ì±ê¼ÇºÍasp±ê¼Ç£¬ÐèÒªÔÚphp.iniÖÐÅäÖÃ
short_open_tag
asp_tags
ÉèΪon ......
ºÜ¾ÃûÓÐЩһЩÓÐÓô¦µÄµÄ¶«Î÷ÁË£¡½ñÌì¾Í²»ºúÂÒµÄд¶«Î÷ÁË!дһЩÓÐÓõ졵±È»Ç°ÌáÏÂÊǺܸÐлºÜ¶à¾³£À´ÎÒ²©¿ÍµÄÅóÓÑһϣ¡¶àл´ó¼Ò£¡£¡£¡£¡£¡
½ñÌìдµÄÊǹØÓÚphp»·¾³¼ÜÉèµÄµÚÒ»ÖÖ·½Ê½£¡µ±È»ÎҾͲ»½ØÍ¼ÁË£¡´ó¼ÒÖ»Òª°´ÕÕ²Ù×÷¾Í¿ÉÒÔʵÏֵģ¡
Ò»¡¢°²×° PHP £º±¾ÎÄPHP°²×°Â·¾¶È¡ÎªD:\php\php4\(Ϊ±Ü»ìÏý£¬PHP5.1.x°æ±¾°²×°Â·¾ ......
/***************************by
garcon1986********************************/
<?php
//¼òµ¥Ê¾Àý
class SimpleClass
{
public $var = 'a default value';
public function displayVar(){
echo $this->var;
}
}
// create an object´´½¨Ò»¸ö¶ÔÏó
$A = new SimpleClass;
//µ÷Ó÷½·¨
$A -> displayVa ......
WindowsÏÂPHPµÄ°²×°ËäÈ»¼òµ¥£¬µ«Èç¹û²»×¢Òâ·½·¨£¬ÈÔÈ»»áÈÃÄãÍ·ÌÛ¡£´ËÍ⣬PHP 5.2°æ±¾Óë֮ǰ4.x°æ±¾Ò²ÓÐһЩ²»Í¬£¬ËùÒÔÓбØÒª¼Ç¼һÏ£¬±ÜÃâÏ´ÎÍü¼ÇÁËÕâÑùµÄ°²×°ÅäÖ÷½·¨¡£
²½ÖèÒ»£ºÏÂÔØphp 5.2 for windowsµÄ°²×°°ü£¬½âѹÖÁC:\php¡£×¢Òâ´Ë½âѹĿ¼¿ÉÒÔÊÇÔÚÈκÎÅÌÏ£¬È»¶øÄ¿Â¼Ãû²»Äܰüº¬¿Õ¸ñ£»
ÒÔÏÂÊÇphp5.2µÄÎļþĿ¼£º
......
1. ´Óphp4 ¿ªÊ¼Ôö¼ÓÁ˱àÒ벿·Ö£¬php4½«ÔÚÔËÐÐǰ¼ì²éÕû¸ö½Å±¾µÄÓï·¨£¬ÔÚ´Ë»ù´¡ÉϱàÒëËùÓеĺ¯Êý£¬²¢ÇÒÔËÐнű¾µÄÖ÷Òª²¿·Ö£¬Èç¹ûphp ³É¹¦´´½¨ÁËÖ¸¶¨µÄhtml,Ôò˵Ã÷½Å±¾Öв»´æÔÚ´íÎ󣬺¯Êý±àÒëÕýÈ·¡£ÒÑʵÏÖ±àÒëÒ»´Î£¬¶à´ÎÔËÐС£php4 ¿ªÊ¼Ê¹ÓÃ.php ΪÀ©Õ¹Ãû
2.php4 Ö§³Öcom,Óû§¿Éͨ¹ýº¯Êýcom,com_get,com_invoke,com_load,com_ ......