PHPÊÖ²á·ÒëÈÕ¼Ç [6] Èô¸É½á¹¹¸Ä±ä
¹úÇ쳤¼Ù½«ÖÁ£¬ÕæÊÇ¿ªÐÄ¡£ÕâÁ½ÌìÓеãС¿Õ£¬·ÒëÁËÊÖ²áÖеÄһЩÄÚÈÝ£¬ËãÊǸøPHPerÃǵÄÒ»¸öСÀñÎï¡£
±¾À´Ïë°ÑËùÓÐPHP5.3µÄÐÂÄÚÈݸø¸üÐÂÁË£¬µ«·¢ÏÖÊÖ²áÓкܴóµÄ¸Ä¶¯£¬ÓÈÆäÊÇһЩĿ¼½á¹¹Éϵķ¢¶¯¡£±ØÐëÏȸúÉÏÕâЩ¸Ä¶¯£¬·ñÔò±àÒë»á³ö´í£¬¸ü̸²»ÉϽøÒ»²½µÄ·Òë¡£
ÕâÁ½ÌìÖ÷Òª×öÁËÒÔϹ¤×÷£º
1. ½«·Òëƽ̨ǨÒƵ½SVN
PHP¹Ù·½µÄ°æ±¾¿ØÖÆϵͳÒѾÍêÈ«¸Ä³ÉSVN¡£ÒëÕßµÄSVNÕʺÅÓëÔÀ´µÄCVSÕʺÅÏàͬ£¬Ö»ÐèÒª¼¤»îһϼ´¿É¡£¼¤»î·½Ê½¼ûreadme.first£¬ÎÒÒѾ¸üе½SVNÀï¡£
2. ¿ØÖƽṹ
Ŀ¼½á¹¹¸Ä±ä£¬ÔÀ´µÄµ¥¸öÎļþcontrol-structures.xml±»²ð·Ö³É¶à¸öÎļþ£¬·Åµ½"control-structures"Ŀ¼¡£
·Ò룺
1) ÔÀ´“for”ÕâÒ»²¿·ÖµÄδ·ÒëµÄÄÚÈÝ¡£
2) goto PHP5.3ÐÂÔö
3) ÔÀ´Ò»Ð©Â©ÒëµÄ´úÂë×¢ÊÍ
/phpdoc/zh/trunk/language/control-structures.xml
/phpdoc/zh/trunk/language
/phpdoc/zh/trunk/language/control-structures
/phpdoc/zh/trunk/language/control-structures/alternative-syntax.xml
/phpdoc/zh/trunk/language/control-structures/break.xml
/phpdoc/zh/trunk/language/control-structures/continue.xml
/phpdoc/zh/trunk/language/control-structures/declare.xml
/phpdoc/zh/trunk/language/control-structures/do-while.xml
/phpdoc/zh/trunk/language/control-structures/else.xml
/phpdoc/zh/trunk/language/control-structures/elseif.xml
/phpdoc/zh/trunk/language/control-structures/for.xml
/phpdoc/zh/trunk/language/control-structures/foreach.xml
/phpdoc/zh/trunk/language/control-structures/goto.xml
/phpdoc/zh/trunk/language/control-structures/if.xml
/phpdoc/zh/trunk/language/control-structures/include-once.xml
/phpdoc/zh/trunk/language/control-structures/include.xml
/phpdoc/zh/trunk/language/control-structures/require-once.xml
/phpdoc/zh/trunk/language/control-structures/require.xml
/phpdoc/zh/trunk/language/control-structures/return.xml
/phpdoc/zh/trunk/language/control-structures/switch.xml
/phpdoc/zh/trunk/language/control-structures/while.xml
/phpdoc/zh/trunk/language/control-structures/goto.xml
3. PHP4ÃæÏò¶ÔÏ󲿷Ö
È«²¿×ªÒƵ½appendicesĿ¼Ï¡£ÒÔºóPHPÖеēÀàÓë¶ÔÏó”ĬÈϾÍÊÇÖ¸PHP5µÄ£¬²»ÔÙÌص
Ïà¹ØÎĵµ£º
PHP£¨Hypertext
Preprocessor£©ÕâÃÅËäÈ»¼òµ¥µ«¹¦ÄÜÈ´ÊǷdz£Ç¿´óµÄ½Å±¾ÓïÑÔ£¬ÏÂÃæ¾Í
»ùÓÚWindowsXP+sp2µÄ²Ù×÷ƽ̨ϵÄ
Apache2.0.53+php5.2.1°²×°¼°»ù±¾ÅäÖùý³Ì¼Ç¼ÏÂÀ´ÒÔ¹©²Î¿¼£º
Ò»¡¢Ê×ÏÈ´Ó¸÷¹Ù·½ÍøÕ¾ÏÂÔØÒÔϳÌÐò£º
1. apache_2.0.53-win32-x86-no_ssl.exe
2. php-5.2.1-Win32.z ......
½ñÌìÓÃÁË°ëÌìʱ¼ä£¬ÓÃNotepad++×é×°ÁËÒ»¸ö×ÔÈÏΪ×îÇ¿µÄPHP¼¯³É¿ª·¢»·¾³.
Ö÷Òª¹¦ÄÜÈçÏ£º
ÏîÄ¿¹ÜÀí
Ç¿´óµ÷ÊÔÄÜÁ¦
Ç¿´óµÄ²éÕÒÌæ»»¹¦ÄÜ
¼«Ð¡µÄºÄ·Ñϵͳ×ÊÔ´(×î¶àºÄ·Ñ2MÄÚ´æ)
¼«¿ìµÄÔËÐÐËٶȣ¬¿ÉÒÔÓë¼Çʱ¾ÏàæÇÃÀ
Óï·¨¸ßÁÁ,ÕÛµþ
´úÂë×Ô¶¯Íê³É(º¯Êý£¬±äÁ¿)
Îļþ±È½Ï
´úÂëµ¼³ö
ºê¼ÖÆ,»Ø·Å
Ö§³ÖÆäËûÓïÑÔ(java,c,c++,x ......
ÏÈ¿´¿´Ï±ßÕâ¶ÎPHP´úÂë¡£Õâ¶ÎʹÓÃip2longº¯Êý£¬¶Ôͬһ¸öIP½øÐÐת»»¡£µ±È»£¬Ò²ÓÐÈËÈÏΪ58.99.011.1ºÍ058.99.011.1Ëã²»ÉϺϷ¨µÄ
IP£¬ÄǾÍReturn£¬´ËÎĶÔÄãûÓаïÖú¡£
ΪʲôҪʹÓôøÇ°µ¼ÁãµÄip£ºÎªÁËÔÚÊý¾Ý¿âÖвéѯ£¬Õâ¸ö¿ÉÒÔÔÚIP¿âÖж¨Î»µ½ipËù¶ÔÓ¦µÄλÖÃÐÅÏ¢¡£ËäȻûÓÐÕûÐ͵ÄIP²éѯЧÂʸߣ¬µ«±Ï¾¹Ö±¹Û°¡¡£
view ......
<?
//http://www.jb51.net
class upLoad{
public $length; //ÏÞ¶¨Îļþ´óС
public $file; //ÅжϴËÀàÊÇÓÃÓÚͼƬÉÏ´«»¹ÊÇÎļþÉÏ´«
public $fileName; //ÎļþÃû
public $fileTemp; //ÉÏ´«ÁÙʱÎļþ
public $fileSize; //ÉÏ´«Îļþ´óС
public $error; //ÉÏ´«ÎļþÊÇ·ñÓдí,php4ûÓÐ
public $fileType; //ÉÏ ......
1.Èç¹ûÒ»¸ö·½·¨¿É¾²Ì¬»¯£¬¾Í¶ÔËü×ö¾²Ì¬ÉùÃ÷¡£ËÙÂÊ¿ÉÌáÉýÖÁ4±¶¡£
2.echo ±È print ¿ì¡£
3.ʹÓÃechoµÄ¶àÖزÎÊý£¨Òë×¢£ºÖ¸ÓöººÅ¶ø²»ÊǾäµã£©´úÌæ×Ö·û´®Á¬½Ó¡£
4.ÔÚÖ´ÐÐforÑ»·Ö®Ç°È·¶¨×î´óÑ»·Êý£¬²»ÒªÃ¿Ñ»·Ò»´Î¶¼¼ÆËã×î´óÖµ¡£
5.×¢ÏúÄÇЩ²»ÓõıäÁ¿ÓÈÆäÊÇ´óÊý×飬ÒÔ±ãÊÍ·ÅÄÚ´æ¡£
6.¾¡Á¿±ÜÃâʹÓÃ__get£¬__set£¬__autolo ......