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

PHPÎļþ°üº¬Â©¶´Ô­Àí·ÖÎöºÍÀûÓ÷½·¨


ÕªÒª£ºÒ»¡¢Éæ¼°µ½µÄΣÏÕº¯Êý¡²include(),require()ºÍinclude_once(),require_once()¡³ include()&&require()Óï¾ä:°üÀ¨²¢ÔËÐÐÖ¸¶¨Îļþ¡£ÕâÁ½Öֽṹ³ýÁËÔÚÈçºÎ´¦Àíʧ°ÜÖ®ÍâÍêÈ«Ò»Ñù¡£include()²úÉúÒ»¸ö¾¯¸æ¶ørequire()Ôòµ¼ÖÂÒ»¸öÖÂÃü´íÎó¡£»»¾ä»°Ëµ£¬Èç¹ûÄãÏëÔÚÓöµ½¶ªÊ§Îļþʱֹͣ´¦ÀíÒ³Ãæ¾ÍÓÃrequire()¡£include()¾Í²»ÊÇÕâÑù¡£
±¾ÎÄÕ¼òµ¥ÕªÒª£ºÒ»¡¢Éæ¼°µ½µÄΣÏÕº¯Êý¡²include(),require()ºÍinclude_once(),require_once()¡³ include()&&require()Óï¾ä:°üÀ¨²¢ÔËÐÐÖ¸¶¨Îļþ¡£ÕâÁ½Öֽṹ³ýÁËÔÚÈçºÎ´¦Àíʧ°ÜÖ®ÍâÍêÈ«Ò»Ñù¡£include()²úÉúÒ»¸ö¾¯¸æ¶ørequire()Ôòµ¼ÖÂÒ»¸öÖÂÃü´íÎó¡£»»¾ä»°Ëµ£¬Èç¹ûÄãÏëÔÚÓöµ½¶ªÊ§Îļþʱֹͣ´¦ÀíÒ³Ãæ¾ÍÓÃrequire()¡£include()¾Í²»ÊÇÕâÑù¡£
Ò»¡¢Éæ¼°µ½µÄΣÏÕº¯Êý¡²include(),require()ºÍinclude_once(),require_once()¡³
include() && require()Óï¾ä:°üÀ¨²¢ÔËÐÐÖ¸¶¨Îļþ¡£
ÕâÁ½Öֽṹ³ýÁËÔÚÈçºÎ´¦Àíʧ°ÜÖ®ÍâÍêÈ«Ò»Ñù¡£include() ²úÉúÒ»¸ö¾¯¸æ¶ø require() Ôòµ¼ÖÂÒ»¸öÖÂÃü´íÎó¡£»»¾ä»°Ëµ£¬Èç¹ûÄãÏëÔÚÓöµ½¶ªÊ§Îļþʱֹͣ´¦ÀíÒ³Ãæ¾ÍÓà require()¡£include() ¾Í²»ÊÇÕâÑù£¬½Å±¾»á¼ÌÐøÔËÐС£
Èç¹û”allow_url_fopen”ÔÚ PHP Öб»¼¤»î£¨Ä¬ÈÏÅäÖã©£¬Ò²¿ÉÒÔÓà URL£¨Í¨¹ý HTTP »òÕßÆäËüÖ§³ÖµÄ·âװЭÒ飩¶ø²»ÊDZ¾µØÎļþÀ´Ö¸¶¨Òª±»°üÀ¨µÄÎļþ¡£Èç¹ûÄ¿±ê·þÎñÆ÷½«Ä¿±êÎļþ×÷Ϊ PHP ´úÂë½âÊÍ£¬Ôò¿ÉÒÔÓÃÊÊÓÃÓÚ HTTP GET µÄ URL ÇëÇó×Ö·û´®À´Ïò±»°üÀ¨µÄÎļþ´«µÝ±äÁ¿¡£
Ïêϸ²Î¿¼£ºhttp://www.phpe.net/manual/function.include.php
require_once()¡¡£¦£¦¡¡include_once()
require_once()ºÍinclude_once() Óï¾äÔڽű¾Ö´ÐÐÆÚ¼ä°üÀ¨²¢ÔËÐÐÖ¸¶¨Îļþ¡£´ËÐÐΪºÍ require() Óï¾äÀàËÆ£¬Î¨Ò»Çø±ðÊÇÈç¹û¸ÃÎļþÖеĴúÂëÒѾ­±»°üÀ¨ÁË£¬Ôò²»»áÔٴΰüÀ¨¡£ÊÊÓÃÓÚÔڽű¾Ö´ÐÐÆÚ¼äͬһ¸öÎļþÓпÉÄܱ»°üÀ¨³¬¹ýÒ»´ÎµÄÇé¿öÏ£¬ÄãÏëÈ·±£ËüÖ»±»°üÀ¨Ò»´ÎÒÔ±ÜÃ⺯ÊýÖض¨Ò壬±äÁ¿ÖØи³ÖµµÈÎÊÌâ¡£
Ïêϸ²Î¿¼£ºhttp://www.phpe.net/manual/function.require-once.php
¶þ¡¢ÎªÊ²Ã´Òª°üº¬Îļþ
³ÌÐòԱд³ÌÐòµÄʱºò£¬²»Ï²»¶¸ÉͬÑùµÄÊÂÇ飬Ҳ²»Ï²»¶°ÑͬÑùµÄ´úÂ루±ÈÈçһЩ¹«Óõĺ¯Êý£©Ð´¼¸´Î£¬ÓÚÊǾͰÑÐèÒª¹«ÓõĴúÂëдÔÚÒ»¸öµ¥¶ÀµÄÎļþÀïÃ棬±ÈÈç share.php£¬¶øºóÔÚÆäËüÎļþ½øÐаüº¬µ÷Óá£ÔÚphpÀÎÒÃǾÍÊÇʹÓÃÉÏÃæÁоٵÄÄǼ¸¸öº¯ÊýÀ´´ïµ½Õâ¸öÄ¿µÄµÄ£¬ËüµÄ¹¤×÷Á÷³Ì£ºÈç¹ûÄãÏëÔÚ main.phpÀï°üº¬share.php,ÎÒ½«ÕâÑùдinclude(”


Ïà¹ØÎĵµ£º

phpÖÐfopen() º¯ÊýÓôò¿ªÎļþģʽ˵Ã÷

fopen() º¯ÊýÓÃÓÚÔÚ PHP Öдò¿ªÎļþ¡£
´Ëº¯ÊýµÄµÚÒ»¸ö²ÎÊýº¬ÓÐÒª´ò¿ªµÄÎļþµÄÃû³Æ£¬µÚ¶þ¸ö²ÎÊý¹æ¶¨ÁËʹÓÃÄÄÖÖģʽÀ´´ò¿ªÎļþ£º
<?php
$file=fopen("welcome.txt","r");
?>
Îļþ¿ÉÄÜͨ¹ýÏÂÁÐģʽÀ´´ò¿ª£º
r   : Ö»¶Á¡£Ö¸Õ붨λÔÚÎļþµÄ¿ªÍ·£¬Èç¹ûÎļþ²»»á±¨´í¡£
r+ : ¶Á/д¡£Ö¸Õ붨λÔÚÎļþµÄ¿ªÍ·,Èç ......

phpÊý¾Ýµ¼Èëµ¼³öÖ®excel(csvÎļþ)

ÒýÓõØÖ·£º
http://blog.csdn.net/conan_s/archive/2008/01/04/2025495.aspx
ÓÐʱд³ÌÐòʱºǫ́ҪÇó°Ñ´óÁ¿Êý¾Ýµ¼ÈëÊý¾Ý¿âÖУ¬±ÈÈ翼ÊԳɼ¨¡¢µç»°²¾µÈÒ»°ã¶¼ÊÇ´æ·ÅÔÚexcelÖеÄÊý¾Ý£¬ÕâʱÎÒÃÇ¿É°Ñexcelµ¼³ö³ÉcsvÎļþ£¬È»ºóͨ¹ýÒÔϳÌÐò¼´¿ÉÅúÁ¿µ¼ÈëÊý¾Ýµ½Êý¾Ý¿âÖÐ
ÉÏ´«cvs²¢µ¼Èëµ½Êý¾Ý¿âÖУ¬²âÊԳɹ¦£¨²¿·Ö´úÂë²»¹æ·¶£¬ÈçPH ......

ʵÀýÏê½âPHP serializeÓëJSON½âÎö

JSON
»ù
ÓÚJavaScript Programming Language, Standard ECMA-262 3rd Edition -
December 1999µÄÒ»¸ö×Ó¼¯¡£JSON²ÉÓÃÍêÈ«¶ÀÁ¢ÓÚÓïÑÔµÄÎı¾¸ñʽ£¬µ«ÊÇҲʹÓÃÁËÀàËÆÓÚCÓïÑÔ¼Ò×åµÄÏ°¹ß£¨°üÀ¨C, C++, C#, Java
, JavaScript, Perl, PythonµÈ£©¡£ÕâЩÌØÐÔʹJSON³ÉΪÀíÏëµÄÊý¾Ý½»»»ÓïÑÔ¡£
JSON½¨¹¹ÓÚÁ½Öֽṹ£º
“Ãû
³ ......

PHPºÃѧÂð£¿

          ´ó¼ÒºÃ£¬Çë½ÌÒ»¸öÎÊÌ⣬Âé·³ÓÐÀàËƾ­ÑéµÄ°ï°ï棬лл¸÷λÁË!
         ±¾ÈËÒÔǰѧ¹ýÁ½ÄêµÄ.NET,ÓÃC#£¬ASP.NET£¬Winfrom,SQLServer×ö¹ý¼¸¸öÍøÕ¾ºÍСÐ͵ĹÜÀíϵͳ¡£
ÏÖÔÚµ½Ò»¼Òй«Ë¾£¬ÒªÇóÎÒѧPHP¡£Âé·³¸ßÊÖÖ¸µãһϣ¬P ......

26¿î¹úÍ⿪ԴPHP½¨Õ¾³ÌÐò

 
 
¿ªÔ´½¨Õ¾³ÌÐòÈñà³Ì¸ßÊÖºÍÖ»¶®´ò×ÖÉÏÍøµÄÈ˶¼¿ÉÒÔ¿ìËÙ½¨Á¢Ò»¸ö¹¦ÄÜÇ¿´ó¡¢½çÃæƯÁÁµÄÍøÕ¾¡£²»¹ÜÄãÊÇÏ뽨һ¸ö²©¿Í¡¢ÂÛ̳¡¢CMS¡¢µç×ÓÉÌÎñÍøÕ¾£¬»òÊÇWiki¡¢Ïà²á¹ÜÀí¡¢RSS¾ÛºÏºÍÀàDiggÍøÕ¾¡£Ä㶼¿ÉÒÔͨ¹ýÕâЩ½¨Õ¾¹¤¾ß¿ìËÙ½¨Á¢¡£
ÎÒÃÇ֮ǰ½éÉܹý23¸ö¿ªÔ´µÄCMS¹ÜÀíϵͳ£¬ÏÖÔÚÔòÈÃÎÒÃÇÀ´¿´Ò»ÏÂ26¿î¿ªÔ´½¨Õ¾³ÌÐò¡£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ