PHP5ÐÂÌØÐÔ: ¸ü¼ÓÃæÏò¶ÔÏ󻯵ÄPHP
PHP
´¦Àí¶ÔÏ󲿷ֵÄÄÚºËÍêÈ«ÖØпª
·¢¹ý£¬Ìṩ¸ü¶à¹¦ÄܵÄͬʱҲÌá¸ßÁËÐÔÄÜ¡£ÔÚÒÔÇ°°æ±¾µÄ
php
ÖУ¬´¦Àí¶ÔÏóºÍ´¦Àí»ù±¾ÀàÐÍ
£¨Êý×Ö£¬×Ö·û´®£©µÄ·½Ê½ÊÇÒ»ÑùµÄ¡£ÕâÖÖ·½Ê½µÄȱÏÝÊÇ£ºµ±½«¶ÔÏó¸³Öµ¸øÒ»¸ö±äÁ¿Ê±£¬»òÕßͨ¹ý²ÎÊý´«µÝ¶ÔÏóʱ£¬¶ÔÏ󽫱»ÍêÈ«¿½±´Ò»·Ý¡£ÔÚеİ汾ÀÉÏÊö²Ù×÷
½«´«µÝÒýÓ㨿ÉÒÔ°ÑÒýÓÃÀí½â³É¶ÔÏóµÄ±êʶ·û£©£¬¶ø·ÇÖµ¡£
ºÜ¶à
PHP
³ÌÐòÔ±¿ÉÄÜÉõÖÁûÓвì¾õµ½ÀϵÄ
¶ÔÏó´¦Àí·½Ê½¡£ÊÂʵÉÏ£¬´ó¶àÊýµÄ
php
Ó¦Óö¼¿ÉÒԺܺõØÔËÐС£»òÕß½ö½öÐèÒªºÜÉٵĸĶ¯¡£
˽ÓкÍÊܱ£»¤³ÉÔ±
PHP5
ÒýÈëÁË˽ÓкÍÊܱ£»¤³ÉÔ±±äÁ¿µÄ
¸ÅÄî¡£ÎÒÃÇ¿ÉÒÔÓÃËüÀ´¶¨ÒåÀà³ÉÔ±µÄ¿É¼ûÐÔ¡£
Àý×Ó
Êܱ£»¤³ÉÔ±¿ÉÒÔ±»×ÓÀà·ÃÎÊ£¬
¶ø˽ÓгÉÔ±Ö»Äܱ»Àà±¾Éí·Ã
ÎÊ¡£
<?php
class
MyClass
{
private $Hello
=
"Hello, World!\n"
;
protected $Bar
=
"Hello, Foo!\n"
;
protected $Foo
=
"Hello, Bar!\n"
;
function
printHello
() {
print
"MyClass::printHello()
"
.
$this
->
Hello
;
print
"MyClass::printHello()
"
.
$this
->
Bar
;
print
"MyClass::printHello()
"
.
$this
->
Foo
;
}
}
class
MyClass2
extends
MyClass
{
protected $Foo
;
function
printHello
() {
MyClass
::
printHello
();
/* Should print */
print
"MyClass2::printHello() "
.
$this
->
Hello
;
/*
Shouldn't print out anything */
print
"MyClass2::printHello() "
.
$this
->
Bar
;
/*
Shouldn't print (not declared)*/
print
"MyClass2::printHello() "
.
$this
->
Foo
;
/*
Should print */
}
}
$obj
= new
MyClass
()
Ïà¹ØÎĵµ£º
2008 Äê 12 ÔÂ 29 ÈÕ
ÏñÆäËûÓïÑÔÒ»Ñù£¬¿ª·¢ÈËÔ±¿ÉÒÔÓà PHP ±àд³ö¸÷ÖÖÖÊÁ¿¼¶±ðµÄ´úÂ롣ѧϰÁ¼ºÃµÄ±à³ÌÏ°¹ßÄܹ»Ìá¸ß´úÂëÖÊÁ¿ºÍЧÂÊ¡£
¸ù¾Ý¾ßÌåµÄÇé¿ö£¬Ò»°ãµÄ¿ª·¢ÈËÔ±ÍùÍù±ÈÓÅÐãµÄ¿ª·¢ÈËÔ±µÄЧÂÊµÍ 10%~20%¡£ÓÅÐãµÄ¿ª·¢ÈËÔ±µÄЧÂʸü¸ß£¬ÒòΪËûÃÇÓµÓзḻµÄ¾ÑéºÍÁ¼ºÃµÄ±à³ÌÏ°¹ß¡£²»Á¼µÄ±à³ÌÏ°¹ß½«»áÓ°Ï쵽ЧÂÊ¡£±¾ÎÄͨ¹ýÕ¹ ......
¡¾1¡¿Ò³ÃæÖ®¼äÎÞ·¨´«µÝ±äÁ¿ get,post,sessionÔÚ×îеÄphp°æ±¾ÖÐ×Ô¶¯È«¾Ö±äÁ¿Êǹرյģ¬ËùÒÔÒª´ÓÉÏÒ»Ò³ÃæÈ¡µÃÌá
½»¹ýÀ´µÃ±äÁ¿ÒªÊ¹ÓÃ$_GET['foo'],$_POST['foo'],$_SESSION['foo']À´µÃµ½¡£µ±È»Ò²¿ÉÒÔÐÞ¸Ä×Ô¶¯È«¾Ö±äÁ¿Îª¿ª
(php.ini¸ÄΪregister_globals = On)£»¿¼Âǵ½¼æÈÝÐÔ£¬»¹ÊÇÇ¿ÆÈ×Ô¼ºÊìϤеÄд·¨±È½ÏºÃ¡£
¡¡¡¡¡¾2 ......
¹ØÓÚÔÚAJAXÖÐGET»ØµÄResponseTextÖÐÎÄÂÒÂëµÄ×î¼ò½â¾ö°ì·¨
//Èç¹û´«ËͲÎÊýÊÇÖ±½Ó¸³ÓèµÄ£¬¾Í»á²úÉúÂÒÂë!
´úÂëÈçÏÂ:
http_request.open("POST",url,true);
http_request.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
http_request.send("action="+strName+"&val="+val); //Èç¹ûvalµÄ ......
×î½ü£¬ÓÐÐí¶àÅóÓÑÎÊÎÒÔÚWindowsXpÏÂPHPµÄ°²×°¹ý³Ì£¬ÕýºÃ×î½üÎÒÔÚ×Ô¼ºµÄ»úÆ÷Éϳɹ¦µÄÒÔÄ£¿é»¯µÄ·½Ê½°²×°ÁËPHP4.23¡£¼ÈÈ»Õâô¶àÅóÓÑÐèÒª£¬ÎÒ¾ÍÒÔ×î³£¼ûµÄIISºÍApache·þÎñÆ÷ΪÀý£¬°ÑPHPÔÚWindowsXPϵݲװ¹ý³Ìд³öÀ´°É£¬Ï£ÍûÄܶÔÒª°²×°PHPµÄÅóÓÑÓеã°ïÖú¡£Èç¹û²»¼ÓÌØÊâ˵Ã÷£¬ÒÔϵĽéÉÜͬʱҲÊÊÓÃÓÚWin2000°æ±¾¡£
Ò»¡¢¸ÅÊö£ ......
phpÏÂÔØ£º
http://windows.php.net/download/
Ñ¡Ôñ
VC6 x86 Thread Safe (2010-Mar-04 20:11:08)
VC6 x86´ú±í Apache HTTP Server (httpd) 2.2.15 ºÍPHP½áºÏ
apacheÏÂÔØ£º
http://httpd.apache.org/download.cgi#apache22
Ñ¡Ôñ2.2.15
httpd-2.2.15-win32-x86-no_ssl.msi [PGP] [MD5] [SHA1]
apache services 2.2Ð ......