µÚÒ»Õ PHP¸ÅÊö (Öصã»Ø¹Ë)
1.PHPÊÇPHP: Hypertext PreprocessorµÄËõд,ÖÐÎÄÒëΪPHP:³¬Îı¾Ô¤´¦ÀíÆ÷.
2.PHPÊÇÒ»ÖÖ¼òµ¥µÄ,ÃæÏò¶ÔÏóµÄ,½âÊÍÐ͵Ä,½¡×³µÄ,°²È«µÄ,ÐÔÄܷdz£¸ßµÄ,¶ÀÁ¢Óڼܹ¹µÄ,¿ÉÒÆÖ²ÐÔµÄ,¶¯Ì¬µÄ·þÎñÆ÷¶Ë½Å±¾ÓïÑÔ.
3.PHP¾ßÓпçƽ̨ÐÔ,ÔÚ´ó¶àÊýUNIXƽ̨,Linuxƽ̨ºÍ΢ÈíWindowsƽ̨É϶¼¿ÉÒÔÔËÐÐ.
4.PHPÖ§³ÖJDBC,ÌṩMYSQL,Oracle,SybaseºÍMS SQLµÈ¶àÖÖÊý¾Ý¿â½Ó¿Ú.
5.PHPͬʱ֧³ÖÃæÏò¹ý³ÌºÍÃæÏò¶ÔÏóÁ½ÖÖ·ç¸ñµÄ¿ª·¢
6.°²×°PHPÔËÐл·¾³
7.PHPÅäÖÃÎļþ(php.ini)Ö÷ÒªÓÃÓÚ¶ÔPHP½øÐÐ״̬,ÊôÐԺ͹¦Äܵȶà¸ö·½ÃæµÄÉèÖÃ.
8.PHPÅäÖÃÎļþ(php.ini)µÄÄÚÈݲÉÓÃ"²ÎÊý=Öµ"µÄ¸ñʽ,ʹÓ÷ֺÅ(;)×÷ΪעÊÍ.
9.Apache·þÎñÆ÷µÄÌصãÊǼòµ¥,Ëٶȿì,ÐÔÄÜÎȶ¨,²¢ÇÒ¿ÉÒÔ×÷Ϊ´úÀí·þÎñÆ÷À´Ê¹ÓÃ
10.Apache·þÎñÆ÷ÌṩFast CGIģʽºÍApacheÄ£¿éģʽÕâÁ½ÖÖ·½Ê½À´Ö§³ÖPHP
11.°²×°Apache·þÎñÆ÷
12.Apache·þÎñÆ÷´ó²¿·ÖµÄ¹¦ÄܺÍÊôÐÔ¶¼ÊÇͨ¹ýËüµÄÅäÖÃÎļþ(httped.conf)À´¹ÜÀíºÍ½øÐÐÅäÖõÄ.
13.Apache·þÎñÆ÷µÄÅäÖÃÎļþ(httped.conf)ÊÇʹÓþ®ºÅ(#)À´×÷ΪעÊ͵Ä.
14.ͨ³£ÔÚ±àдPHP³ÌÐòµÄʱºò,×î¼òµ¥µÄÖ»ÐèÒªÒ»¸ö¼Çʱ¾¾Í¿ÉÒÔÁË,µ«ÊÇÑ¡Ôñ¾ßÓиü¶à¹¦Äܵıà¼Æ÷¿ÉÒÔΪ³ÌÐòµÄ±àд´øÀ´±ãÀû.
Ïà¹ØÎĵµ£º
ÎÒÏÖÔÚÓÐÕâÑùÒ»¸öÐèÇ󣬻òÐí×öc++³ÌÐòµÄ×ö¹ýÕâÑùµÄÍæÒâ¶ù£¬ÎÒÏÖÔÚÏëÓÃphpÀ´ÊµÏÖ£¬´ÓûÅöµ½ÕâÑùµÄÇé¿ö£¬ËùÒÔÓеãã¡£»¹Çë¸ßÈËÖ¸µãŶ£¬²»Ê¤¸Ð¼¤£¬Çë²é¿´ÎÒÉÏ´«µÄ½Øͼ£¬¸´ÖƹýÀ´£¬ÑùʽÂÒÁË¡£
ÃèÊöÒ»ÏÂÐèÇó°É£º¾ÍÊÇÔÚÎı¾ÀïÃæÓÃÖƱí·û»³ö±í¸ñÊ ......
1. ¾¡Á¿²ÉÓôóÁ¿µÄPHPÄÚÖú¯Êý¡£
2. echo ±È print ¿ì¡£
3. ²»Òª°Ñ·½·¨Ï¸·ÖµÃ¹ý¶à£¬×ÐϸÏëÏëÄãÕæÕý´òËãÖØÓõÄÊÇÄÄЩ´úÂ룿
4. ÔÚÖ´ÐÐforÑ»·Ö®Ç°È·¶¨×î´óÑ»·Êý£¬²»ÒªÃ¿Ñ»·Ò»´Î¶¼¼ÆËã×î´óÖµ¡£
5. ×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6. ²¢·ÇÒªÓÃÀàʵÏÖËùÓеÄÊý¾Ý½á¹¹£¬Êý×éÒ²ºÜÓÐÓá£
7. $row['id']µÄÐ ......
»ù´¡Ìâ
¡¡¡¡1.±íµ¥ÖÐ getÓëpostÌá½»·½·¨µÄÇø±ð?
¡¡¡¡´ð£ºgetÓû§¶Ë½«Êý¾Ý¼Óµ½URLºó£¬¸ñʽΪ”?×Ö¶Î1=ÊäÈëÊý¾Ý1&×Ö¶Î2=ÊäÈëÊý¾Ý2&..."¡£
¡¡¡¡ÓÉÓÚgetÌá½»²ÎÊýºó»áÔÚµØÖ·À¸ÖÐÏÔʾ³öÀ´£¬ËùÒÔ»á²úÉúÑÏÖصݲȫÎÊÌâ¡£
¡¡¡¡get´«ÊäµÄÊý¾ÝÁ¿Ð¡£¬get´«ÊäµÄÊý¾ÝÁ¿Ð¡£¬ÕâÖ÷ÒªÊÇÒòΪÊÜurl³¤¶ÈÏÞÖÆ;¶øpost¿ÉÒÔ´«Ê ......
Êý¾Ý¿âÉè¼Æ£º
--
-- Êý¾Ý¿â: `test`
--
-- --------------------------------------------------------
--
-- ±íµÄ½á¹¹ `menu`
--
CREATE TABLE IF NOT EXISTS `menu` (
`ID` int(10) unsigned NOT NULL auto_increment,
`PID` int(11) NOT NULL,
`TITLE` varchar(200) NOT NULL,
`REMARK` varchar(200) NOT ......
<mce:script language=javascript><!--
var a=0;
// --></mce:script>
<?php
function func1()
{
$t="a=a+1;";
return $t."alert(a)";
}
?>
<?php
echo "<input type=button value='Sure' onclick=\"".func1()."\">";
?> ......