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

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
()


Ïà¹ØÎĵµ£º

PHP ʵÏÖ¶à·þÎñÆ÷¹²ÏíSESSIONÊý¾Ý

Ò»¡¢ÎÊÌâÆðÔ´
ÉÔ´óһЩµÄÍøÕ¾£¬Í¨³£¶¼»áÓкü¸¸ö·þÎñÆ÷£¬Ã¿¸ö·þÎñÆ÷ÔËÐÐ×Ų»Í¬¹¦ÄܵÄÄ£¿é£¬Ê¹Óò»Í¬µÄ¶þ¼¶ÓòÃû£¬¶øÒ»¸öÕûÌåÐÔÇ¿µÄÍøÕ¾£¬Óû§ÏµÍ³ÊÇͳһµÄ£¬¼´Ò»Ì×
Óû§Ãû¡¢ÃÜÂëÔÚÕû¸öÍøÕ¾µÄ¸÷¸öÄ£¿éÖж¼ÊÇ¿ÉÒԵǼʹÓõġ£¸÷¸ö·þÎñÆ÷¹²ÏíÓû§Êý¾ÝÊDZȽÏÈÝÒ×ʵÏֵģ¬Ö»ÐèÒªÔÚºó¶Ë·Å¸öÊý¾Ý¿â·þÎñÆ÷£¬¸÷¸ö·þÎñÆ÷ͨ¹ýͳһ½Ó
......

PHP µãÔËËã·û£¨.£©ÓëÊý¾ÝÀàÐÍת»»µÄÉîÈë̽ÌÖ

    Èç¹û¹À¼Æû´í£¬ÔÚ PHP ÓïÑÔÖУ¬Ê¹ÓÃ×î¶àµÄÔËËã·ûºÅµ±ÊýµãÔËËã·ûºÅ“.”£¬Ê¹ÓÃ×î¶àµÄÓï¾äµ±Êý“echo”¡£²»ÄÑÀí½â£¬PHP µÄÄ¿±ê¾ÍÊÇÉú³É³¬Îı¾½Å±¾£¬¶ø³¬Îı¾½Å±¾¾ÍÊÇÓÉ×Ö·û´®×é³ÉµÄ£¬ËùÒÔ PHP ´¦Àí×î¶àµÄÊý¾Ýµ±ÊÇ×Ö·û´®£¬Òò´ËÁ¬½Ó×Ö·û´®µÄµãÔËËã·ûºÍÊä³ö×Ö·û´®µÄÓï¾ä“echo&rdqu ......

PHPÔÚXPÏÂIISºÍApache2·þÎñÆ÷Éϵݲװ

×î½ü£¬ÓÐÐí¶àÅóÓÑÎÊÎÒÔÚWindowsXpÏÂPHPµÄ°²×°¹ý³Ì£¬ÕýºÃ×î½üÎÒÔÚ×Ô¼ºµÄ»úÆ÷Éϳɹ¦µÄÒÔÄ£¿é»¯µÄ·½Ê½°²×°ÁËPHP4.23¡£¼ÈÈ»Õâô¶àÅóÓÑÐèÒª£¬ÎÒ¾ÍÒÔ×î³£¼ûµÄIISºÍApache·þÎñÆ÷ΪÀý£¬°ÑPHPÔÚWindowsXPϵݲװ¹ý³Ìд³öÀ´°É£¬Ï£ÍûÄܶÔÒª°²×°PHPµÄÅóÓÑÓеã°ïÖú¡£Èç¹û²»¼ÓÌØÊâ˵Ã÷£¬ÒÔϵĽéÉÜͬʱҲÊÊÓÃÓÚWin2000°æ±¾¡£
Ò»¡¢¸ÅÊö£ ......

Mini2SAE »ùÓÚSAEÇáÁ¿¼¶PHP¿ª·¢¿ò¼Ü


Mini2SAE
£º
Mini
--ºËÐÄÎļþÖ»ÓÐ15K
£¬
2
--to£¬
SAE
--Sina App Engine(ÐÂÀËÓ¦ÓÃÒýÇæ)

»ùÓÚSAE¿ìËÙ¡¢¼òµ¥µÄ¡¢ÇáÁ¿¼¶PHP¿ª·¢¿ò¼Ü……
×ñÑ­BSD¿ªÔ´Ð­ÒéµÄÃâ·Ñ¿ªÔ´¿ò¼Ü……
Ϊ²ÉÓ ......

ÀûÓÃphp»ñÈ¡Êý¾Ý¿âÖÐËùÓÐÐÅÏ¢¿É²Î¿¼phpMyAdmin


<?php
@mysql_connect("localhost", "root","1981427") //Ñ¡ÔñÊý¾Ý¿â֮ǰÐèÒªÏÈÁ¬½ÓÊý¾Ý¿â·þÎñÆ÷
or die("Êý¾Ý¿â·þÎñÆ÷Á¬½Óʧ°Ü");
$dbs = mysql_list_dbs(); //µ÷ÓÃmysql_list_dbsº¯Êý
while ($array = mysql_fetch_row($dbs)) //Ñ­»·Êä³öËùÓеÄÊý¾Ý¿âÃû³Æ
{
echo "$array[0]<BR>";
}
?>
& ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ