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

php static ¹Ø¼ü×Ö

±¾ÎÄת×Ô http://www.phpchina.com/html/31/35331-12207.html
  PHPÀï±ßÓÃStatic¹Ø¼ü×ÖÀ´¶¨Ò徲̬ÊôÐԺͷ½·¨.
ʵÀýÒ»£º¾²Ì¬ÊôÐÔµÄÒýÓ÷½·¨
<?php
/*
*author:ajax123
*qq:283400245
*/
class person{
       static$name="ajax123";//staticÉùÃ÷¾²Ì¬ÊôÐÔ
       static$age=25;//staticÉùÃ÷¾²Ì¬ÊôÐÔ
       static$address="±±¾©";//staticÉùÃ÷¾²Ì¬ÊôÐÔ
        function song(){
                 echo "My name is : ".self::$name."<br>";//ÀàÄÚ²¿:ͨ¹ýͨ¹ýself Àà·ÃÎʾ²Ì¬ÊôÐÔ
                 echo "I am ".self::$age."<br>";//ÀàÄÚ²¿:ͨ¹ýͨ¹ýself Àà·ÃÎʾ²Ì¬ÊôÐÔ
                 echo "I live in ".self::$address."<br>";//ÀàÄÚ²¿:ͨ¹ýself Àà·ÃÎʾ²Ì¬ÊôÐÔ
}
}
                echoperson::$name."<br>";//ÀàÍⲿ:ͨ¹ýÀàÃûperson·ÃÎʾ²Ì¬ÊôÐÔ
                echoperson::$age."<br>";//ÀàÍⲿ:ͨ¹ýÀàÃûperson·ÃÎʾ²Ì¬ÊôÐÔ
                echoperson::$address."<br>";//ÀàÍⲿ:ͨ¹ýÀàÃûperson·ÃÎʾ²Ì¬ÊôÐÔ
?>
ʵÀý¶þ£º¾²Ì¬·½·¨µÄÒýÓ÷½·¨
<?php
/*
*author:ajax123
*qq:283400245
*/
class person{
       static$name="ajax123";//staticÉùÃ÷¾²Ì¬ÊôÐÔ
       static$age=25;//staticÉùÃ÷¾²Ì¬ÊôÐÔ
       static$address="±±¾©";//staticÉùÃ÷¾²Ì¬ÊôÐÔ
       staticfunction song(){         &nb


Ïà¹ØÎĵµ£º

PHP»ù±¾Óï·¨£¨°Ë£©—— ±íµ¥´¦Àí

±íµ¥ºÍÓû§ÊäÈë
PHP ±íµ¥´¦Àí
±íµ¥ÊµÀý£º
<html>
<body>
 
<form action="welcome.php" method="post">
Name: <input type="text" name="name" />
Age: <input type="text" name="age" />
<input type="submit" />
</form>
 
</body>
</html> ......

Apache+php+mysqlÔÚwindowsϵݲװÓëÅäÖÃͼ½â

ÏÈ×¼±¸ºÃÈí¼þ£º
·Ö±ðÔÚApache¹Ù·½¡¢php¹Ù·½¡¢mysql¹Ù·½ÏÂÔØ×îлòÎȶ¨°æ±¾
Ò»¡¢°²×°Apache£¬ÅäÖóɹ¦Ò»¸öÆÕͨÍøÕ¾·þÎñÆ÷
ÔËÐÐÏÂÔغõēapache_2.0.55-win32-x86-no_ssl.msi”£¬³öÏÖÈçϽçÃ棺
 
 
³öÏÖApache HTTP Server 2.0.55µÄ°²×°Ïòµ¼½çÃ棬µã“Next”¼ÌÐø
 
 
È·È ......

php»·¾³´î½¨£¨×Ô¼ºÒ²Ð´Ò»Æª£©

Ê×ÏÈ×¢Òâ°æ±¾ÎÊÌ⣬һ¶¨Òª×Ðϸ²é¿´php manualÉϵÄÄÚÈÝ£¬Èçhttp://www.php.net/manual/en/install.windows.apache2.php ÉÏÓÐÒ»¸önote:
Note
:
Apache 2.2 Support

Users of Apache 2.2 should note that the DLL file for Apache 2.2 is
named php5apache2_2.dll
rather than php5apache2.d ......

PHP·ÃÎÊMySQLÊý¾Ý¿â

PHPÊÖ²áÉÏÌṩÁËÒÔÏÂһЩÖ÷ÒªµÄmysqlÊý¾Ý¿âµÄÖ§³Öº¯Êý£º
mysql_affected_rows -- È¡µÃÇ°Ò»´Î MySQL ²Ù×÷ËùÓ°ÏìµÄ¼Ç¼ÐÐÊý
mysql_change_user --  ¸Ä±ä»î¶¯Á¬½ÓÖеǼµÄÓû§
mysql_client_encoding -- ·µ»Ø×Ö·û¼¯µÄÃû³Æ
mysql_close -- ¹Ø±Õ MySQL Á¬½Ó
mysql_connect -- ´ò¿ªÒ»¸öµ½ MySQL ·þÎñÆ÷µÄÁ¬½Ó
mysql_c ......

php GetImageSize

array getimagesize(string filename)
¸Ãº¯Êý·µ»ØÒ»¸öËÄÎÞËصľØÕ󡢸æËßÄãËù¸øÎļþÃûµÄͼÏñ³ß
´ç¡£¸ÃÎļþµÄ¸ñʽ±ØÐëÊÇGIF,jpeg»òPNGÖеÄÈÎÒ»ÖÖ¡£
 Ôª
ËØ
 ÃèÊö
 0
¿í¶ÈµÄÏñËØÊý 
 1
¸ß
¶ÈµÄÏñËØÊý 
 2
ͼÏñµÄÀàÐÍ£¨GIF=1,JPG=2,PNG=3) 
 3
ÔÚ
IMG±ê¼ÇÖпÉÓõ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ