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

PHPÊÇʲô£¿

PHPÊÇʲô£¿
PHPÊÇÒ»ÖÖ¿ª·¢ÓïÑÔ£¬Ê¼´´ÓÚ1995Ä꣬¹Ù·½ÍøÕ¾www.php.net
PHPµÄÈ«³ÆÊdz¬Îı¾Ô¤´¦ÀíÆ÷£¨Hypertext Preprocessor£©
PHPÊÇÒ»ÖÖ´´½¨¶¯Ì¬½»»¥ÍøÕ¾µÄ·þÎñÆ÷¶Ë½Å±¾ÓïÑÔ£¬Í¨³£ÐèÒª´îÅäApache£¨Web·þÎñÆ÷Èí¼þ£©Ò»ÆðʹÓ㬲»¹ýÒ²¿ÉÒÔ´îÅäÆäËû·þÎñÆ÷Èí¼þ£¬ÈçIIS¡¢NginxµÈ¡£
PHPÊÇ×îÁ÷ÐеÄÍøÕ¾¿ª·¢ÓïÑÔÖ®Ò»£¬ÍêÈ«Ãâ·ÑʹÓ㬷dz£ÈÝÒ×ÉÏÊÖ£¬ÓëÁíÍâÈý¸ö¿ªÔ´Èí¼þ×é³É¾­µäµÄLAMP×éºÏ£¨Linux+Apache+MySQL+PHP£©£¬ÉîÊܹã´óÍøÕ¾¿ª·¢ÕßµÄϲ°®¡£
PHP¿ÉÒÔÖ±½ÓǶÈëHTML´úÂëÖУ¬·Ç³£ÊʺÏÍøÕ¾¿ª·¢£¬ÏÂÃæÎÒÃÇ¿´¶Î´úÂë
Îı¾²é¿´¸´ÖÆ´úÂë´òÓ¡¹ØÓÚ
<html>   
    <head>   
        <title>365PHP – PHPÅàѵÓë½»Á÷ƽ̨</title>   
    </head>   
    <body>   
        <?php   
              echo “<h1>»¶Ó­¹âÁÙ365PHP</h1>”;   
        ?>   
    </body>   
</html>  
<html>
<head>
<title>365PHP – PHPÅàѵÓë½»Á÷ƽ̨</title>
</head>
<body>
<?php
echo “<h1>»¶Ó­¹âÁÙ365PHP</h1>”;
?>
</body>
</html>
PHPÄÜ×öʲô£¿
PHPÖ÷ÒªÓÃÓÚÒÔÏÂÈý¸öÁìÓò
·þÎñÆ÷¶Ë½Å±¾£º¶¯Ì¬ÍøÕ¾¿ª·¢£¬365PHP¾ÍÊÇ»ùÓÚPHPÓïÒô£¬Ê¹Óþ­µäµÄCMS¿ªÔ´ÏîÄ¿Joomla£¡½¨Á¢¶ø³É¡£
¿Í»§¶ËͼÐÎÓû§½çÃæ£¨GUI£ºGraphics User Interface£©£¬ÈçGTKÀ¦°óPHP¿ª·¢Óû§Í¼ÐνçÃæ¡£
ÃüÁîÐнű¾£ºPHP×öΪShell½Å±¾ÓïÑÔÀ´Ê¹Óá£
µ±È»PHPÖ÷ÒªÊÇÓÃÓÚ·þÎñÆ÷¶ËµÄ½Å±¾³ÌÐò£¬Òò´ËÄú¿ÉÒÔÓÃPHPÀ´Íê³ÉÈÎºÎÆäËûCGI³ÌÐòÄܹ»Íê³ÉµÄ¹¤×÷£¬ÀýÈçÊÕ¼¯±íµ¥Êý¾Ý¡¢Éú³É¶¯Ì¬ÍøÒ³¡¢·¢Éú/½ÓÊÕCookieµÈ£¬PHPµÄ¹¦ÄÜÔ¶²»¾ÖÏÞÓë´Ë¡£
PHPµÄÌØµã
PHPÊÇ¿ª·¢Ô´´úÂëµÄ£¬ÔËÐÐÓÚ·þÎñÆ÷¶ËµÄ½Å±¾ÓïÑÔ
¶ÀÁ¢ÓÚ²Ù×÷ϵͳ£¬¿ÉÒÔÔËÐÐÔÚ¼¸ºõËùÓÐϵͳÖÐ
Ö§³Ö´ó²¿·ÖµÄ·þÎñÆ÷Èí¼þ£¬ÈçApache¡¢IIS¡¢Ng


Ïà¹ØÎĵµ£º

ubuntu Ï ´î½¨ apache+php+mysql


#apt-get install apache2
//°²×°apahce2
#apt-get install php5
//°²×°php5
#apt-get install mysql-server
//°²×°mysql·þÎñ¶Ë
#apt-get install  mysql-myclient
//°²×°mysqlµÄ¿Í»§¶Ë
#apt-get install php-mysql
//°²×°php-mysqlµÄÁ¬½á
apache+php+mysql »·¾³ÒѾ­´î½¨ºÃÁË
½«ÒÔϵķþÎñÖØÆôÒ»ÏÂ
#/et ......

PHP ¿ª·¢ÖÐÊý¾Ý¿â¼°ÆäÏà¹ØÈí¼þµÄÑ¡ÐÍ¿¼ÂÇ

    PHP °æ±¾¸÷Ò죬ÒѾ­Í£Ö¹Éý¼¶¿ª·¢µÄÓÐ 4.0 ϵÁÐµÄ 4.4.x£¬µ«ÏÖÔÚ»¹Óв¿·ÖÉú²ú»·¾³ÔÚÅÜÕâ¸ö°æ±¾£¬ÐèÒª¼ÌÐøÎ¬»¤´úÂë¡£PHP 5.0 ϵÁÐÊÇÏÖÔÚ¿ª·¢ºÍÓ¦ÓõÄÖ÷Á÷°æ±¾£¬ÓÐ 5.1.x ºÍ 5.2.x ϵÁС£PHP 6.0 Ŀǰ»¹ÊÇÊÔÓð汾£¬Óà PHP ¿ª·¢Èí¼þ²úÆ·µÄÈËÏÖÔÚ¿ÉÒÔÔ¤ÏÈ×÷¼æÈÝÐÔ²âÊÔ¡£
    PHP Ö§³ÖµÄÊý¾Ý ......

PHPÊý¾ÝÀàÐÍת»»

PHPÊý¾ÝÀàÐÍת»»
PHPµÄÊý¾ÝÀàÐÍת»»ÊôÓÚÇ¿ÖÆ×ª»»£¬ÔÊÐíת»»µÄPHPÊý¾ÝÀàÐÍÓУº
£¨int£©¡¢£¨integer£©£º×ª»»³ÉÕûÐÎ
£¨float£©¡¢£¨double£©¡¢£¨real£©£º×ª»»³É¸¡µãÐÍ
£¨string£©£º×ª»»³É×Ö·û´®
£¨bool£©¡¢£¨boolean£©£º×ª»»³É²¼¶ûÀàÐÍ
£¨array£©£º×ª»»³ÉÊý×é
£¨object£©£º×ª»»³É¶ÔÏó
PHPÊý¾ÝÀàÐÍÓÐÈýÖÖת»»·½Ê½£ ......

PHP±äÁ¿µÄ±äÁ¿

PHP±äÁ¿µÄ±äÁ¿£¬¼´¿É±ä±äÁ¿
      ¿É±ä±äÁ¿µÄ¸ÅÄͨ¹ý»ñȡһ¸ö±äÁ¿µÄÖµ×öΪÁíÍâÒ»¸ö±äÁ¿µÄÃû³ÆÀ´²Ù×÷±äÁ¿£¬¾ÍÊÇ¿ÉÒÔ±äÁ¿¡£
¡¾Ê¾Àý¡¿
Îı¾²é¿´¸´ÖÆ´úÂë´òÓ¡¹ØÓÚ
<?php   
$a = 'hello';   //ÆÕͨ±äÁ¿   
  
$$a = ' ......

PHPµÄ»ù±¾Óï·¨

PHPµÄÓï·¨½á¹¹
±à³ÌÓïÑÔµÄÓï·¨½á¹¹£¨lexical structure£©ÊÇÖ¸¹ÜÀíÈçºÎÓÃÓïÑÔд³ÌÐòµÄ»ù±¾¹æÔòµÄ¼¯ºÏ¡£Óï·¨½á¹¹ÊÇ×îµÍ¼¶µÄÓïÑÔÓï·¨£¬²¢ÇÒÖÆ¶¨Á˱äÁ¿Ãû³ÆÊÇʲôÑù×Ó£¬Ê²Ã´×Ö·ûͨ³£ÓÃ×ö×¢ÊÍ£¬ÒÔ¼°ÈçºÎ½«³ÌÐòÓï¾ä·Ö¿ªµÈµÈ¡£
PHPµÄ»ù±¾Óï·¨
1¡¢ ´óСд
ͬÄÚÖýṹºÍ¹Ø¼ü×Ö£¨Èçecho¡¢while¡¢classµÈ£©Ò»Ñù£¬Óû§×Ô¶¨ÒåµÄÀàÃû ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ