Apache PHPÀûÓÃHTTP»º´æÐÒéÔÀí½âÎö¼°Ó¦ÓÃ
ÔÎÄ£ºhttp://www.phpx.com/tech/php/2009-01-29/286.html
ÏÂÃæÊǽØÈ¡µÃapache·µ»Ø¿Í»§¶ËµÄÍ·
---------
Last-Modified: Fri, 26 Jan 2007 01:53:34 GMT
ETag: "3f9f640-318-cb9f8380"
---------
ËÑË÷ÒýÇæÖ®ËùÒÔϲ»¶¾²Ì¬ÎļþÊÇÒòΪÓÐÕâÁ½¸ö±êʶ£¬¿ÉÒÔÅжÏÎļþÊÇ·ñ¸üйý
¶þ¡¢PHPµÈ¶¯Ì¬Ò³Ãæ
ÓÉÓÚphpÊǶ¯Ì¬Éú³ÉµÄ£¬ËüµÄÄÚÈÝÊDz»Äܸù¾Ýphp³ÌÐòµÄʱ¼äÀ´È·¶¨×îºóÐÞ¸ÄÈÕÆÚ£¬ËùÒÔĬÈÏphp·µ»Ø¿Í»§¶ËµÄʱºò²¹°üº¬Èκλº´æ¿ØÖÆ£¬ÒªÏëÀûÓúûº´æ¾Í±ØÐëÁ˽⻺´æ»úÖÆ£¬ºÍÀí¼õÉÙb,sµÄ½»»¥£¬Ëõ¼õ´ø¿íÁ÷Á¿£¬¼õÇá·þÎñÆ÷¸ºµ£...ºÃ´¦¶à¶àf
Èý¡¢»º´æ¿ØÖƵľßÌ庬Òåf
ÏȽâÊÍһϱ¾È˾¹ý²âÊÔÀí½âµÄÕ⼸¸ö±êÇ©µÄº¬Òå
Cache-Control:Ö¸¶¨ÇëÇóºÍÏìÓ¦×ñѵĻº´æ»úÖÆ¡£ÔÚÇëÇóÏûÏ¢»òÏìÓ¦ÏûÏ¢ÖÐÉèÖÃCache-Control²¢²»»áÐÞ¸ÄÁíÒ»¸öÏûÏ¢´¦Àí¹ý³ÌÖеĻº´æ´¦Àí¹ý³Ì¡£ÇëÇóʱµÄ»º´æÖ¸Áî°üÀ¨no-cache¡¢no-store¡¢max-age¡¢max-stale¡¢min-fresh¡¢only-if-cached£¬ÏìÓ¦ÏûÏ¢ÖеÄÖ¸Áî°üÀ¨public¡¢private¡¢no-cache¡¢no-store¡¢no-transform¡¢must-revalidate¡¢proxy-revalidate¡¢max-age¡£¸÷¸öÏûÏ¢ÖеÄÖ¸ÁÒåÈçÏ£º
PublicָʾÏìÓ¦¿É±»Èκλº´æÇø»º´æ¡£
Privateָʾ¶ÔÓÚµ¥¸öÓû§µÄÕû¸ö»ò²¿·ÖÏìÓ¦ÏûÏ¢£¬²»Äܱ»¹²Ïí»º´æ´¦Àí¡£ÕâÔÊÐí·þÎñÆ÷½ö½öÃèÊöµ±Óû§µÄ²¿·ÖÏìÓ¦ÏûÏ¢£¬´ËÏìÓ¦ÏûÏ¢¶ÔÓÚÆäËûÓû§µÄÇëÇóÎÞЧ¡£
no-cacheָʾÇëÇó»òÏìÓ¦ÏûÏ¢²»Ä
Ïà¹ØÎĵµ£º
#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ÖУ¬ÎªÖ§³ÖÕâÈýÖֽṹ£¬ÌṩÁËʵÏÖÕâÈýÖֽṹËùÐèµÄÓï¾ä¡£
1¡¢Ë³Ðò½á¹¹£º
ÔÚ³ÌÐò½á¹¹ÖУ¬×î»ù±¾µÄ¾ÍÊÇ˳Ðò½á¹¹¡£³ÌÐò»á°´ÕÕ×ÔÉ϶øϵÄ˳ÐòÖ´ÐдúÂ룬»ù±¾ÐÎʽΪ£º
Óï¾ä1;
Óï ......
PHPÊý¾ÝÀàÐÍת»»Ï¸½Ú
1¡¢Êý×Ö£¨ÕûÐκ͸¡µãÐÍÖ®¼ä¿ÉÒÔÏ໥ת»¯£©
ÕûÐÎת»»Îª¸¡µãÐÍ£ºÓÉÓÚ¸¡µãÐ͵ľ«¶È·¶Î§Ô¶´óÓÚÕûÐΣ¬ËùÒÔת»»ºóµÄÊýÖµ¾«¶È²»»á¸Ä±ä¡£
¸¡µãÐÍת»»ÎªÕûÐΣº½²×Ô¶¯ÉáÆúСÊ÷²¿·Ö£¬Ö»±£ÁôÕûÊý²¿·Ö¡£×¢£ºÈç¹ûÒ»¸ö¸¡µãÐͳ¬¹ýÕûÊýÈ¡ÖµµÄÓÐЧ·¶Î§£¬Æä½á¹û½«ÊÇÎÞ·¨È·¶¨µÄ£¨ÕûÊýµÄ×î´óÖµÔ¼ÊÇ2.147e9£©¡£
¡¾Ê¾Àý¡ ......
PHPÊý¾ÝÀàÐÍת»»
PHPµÄÊý¾ÝÀàÐÍת»»ÊôÓÚÇ¿ÖÆת»»£¬ÔÊÐíת»»µÄPHPÊý¾ÝÀàÐÍÓУº
£¨int£©¡¢£¨integer£©£º×ª»»³ÉÕûÐÎ
£¨float£©¡¢£¨double£©¡¢£¨real£©£º×ª»»³É¸¡µãÐÍ
£¨string£©£º×ª»»³É×Ö·û´®
£¨bool£©¡¢£¨boolean£©£º×ª»»³É²¼¶ûÀàÐÍ
£¨array£©£º×ª»»³ÉÊý×é
£¨object£©£º×ª»»³É¶ÔÏó
PHPÊý¾ÝÀàÐÍÓÐÈýÖÖת»»·½Ê½£ ......
PHP±äÁ¿
1¡¢PHP±äÁ¿µÄ¶¨Òå
ÔÚPHPÖУ¬Ê¹ÓÃ×Ö·û´®µÄÃÀÔª·ûºÅ£¨$£©ºóÃæ¸úÉÏÒ»¸ö±êʾ·û£¬¼´±äÁ¿Ãû³Æ£¬ÀýÈ磺$name¡¢$age£¬±íʾһ¸ö±äÁ¿¡£
2¡¢±äÁ¿Ãû³ÆµÄÃüÃû¹æÔò
±äÁ¿Ãû³ÆÓÉ×Öĸ¡¢Ï»®Ïß¿ªÍ·£¬ºóÃæ¸úÉÏÈÎÒâÊýÁ¿µÄ×Öĸ¡¢Êý×Ö»òÕßÏ»®Ïß
±äÁ¿Ãû³Æ²»ÄÜÒÔÊý×Ö¿ªÍ·£¬Öм䲻ÄÜÓпոñ
±äÁ¿Ãû³Æ¿ÉÒÔʹÓÃÖÐÎÄ
±äÁ¿Ãû³Æ¶Ô´óСд ......