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

PHP ³£Á¿ dirname(__file__) ѧϰ


PHP ³£Á¿ dirname(__file__)
__FILE__ :±»³ÆΪPHPħÊõ³£Á¿ ,·µ»Øµ±Ç°Ö´ÐÐPHP½Å±¾µÄÍêÕû·¾¶ºÍÎļþÃû,°üº¬Ò»¸ö¾ø¶Ô·¾¶
1£©dirname(__FILE__) º¯Êý·µ»ØµÄÊǽű¾ËùÔÚÔڵķ¾¶¡£   
±ÈÈçÎļþ b.php °üº¬ÈçÏÂÄÚÈÝ£º    
         <?php   
   $basedir = dirname(__FILE__);    
   echo $basedir
                                            //½«ÔÚÒ³Ãæ´òÓ¡³öÒ»¸öÕâ¸öÎļþËùÔÚ¾ø¶Ô·¾¶!
   ?>    
   ÎÒ×öµÄ²âÊԵõ½½á¹û: E:\website\othertest\cms
   Õâ¸öÏ൱ÓÚ, aspÖеÄserver.mappthµÄÓ÷¨
Èç¹ûb.php±»ÆäËûĿ¼ÀïµÄa.phpÎļþrequire »òÕß include È¥ÒýÓõĻ°¡£ ±äÁ¿$basedir µÄÄÚÈÝ»¹ÊÇb.phpËùÔÚµÄÄǸöÎļþ¼ÐµÄ·¾¶¡£    ¶ø²»ÊDZä³Éa.phpÎļþËùÔÚµÄĿ¼¡£
2£©dirname(__FILE__) Ò»°ã»á·µ»ØÎļþËùµÄµ±Ç°Ä¿Â¼µ½ÏµÍ³¸ùĿ¼µÄÒ»¸öĿ¼½á¹¹¡£  
²»»á·µ»Øµ±Ç°µÄÎļþÃû³Æ¡£    dirname(__FILE__) Ò²¿ÉÄÜ·µ»ØÒ»¸ö . (µ±Ç°Ä¿Â¼)    [Ô­ÒòÊÇ b.php ÎļþÔÚ http.conf »òÕß PHP ÅäÖÿª·¢»·¾³µÄĬÈÏWEBĿ¼ÏÂ
¼¸¸ö PHP µÄ“ħÊõ³£Á¿”
Ãû³Æ ˵Ã÷
__LINE__ ÎļþÖеĵ±Ç°Ðкš£
__FILE__ ÎļþµÄÍêÕû·¾¶ºÍÎļþÃû¡£Èç¹ûÓÃÔÚ°üº¬ÎļþÖУ¬Ôò·µ»Ø°üº¬ÎļþÃû¡£×Ô PHP 4.0.2 Æð£¬__FILE__ ×ÜÊÇ°üº¬Ò»¸ö¾ø¶Ô·¾¶£¬¶øÔÚ´Ë֮ǰµÄ°æ±¾ÓÐʱ»á°üº¬Ò»¸öÏà¶Ô·¾¶¡£
__FUNCTION__ º¯ÊýÃû³Æ£¨PHP 4.3.0 мӣ©¡£×Ô PHP 5 Æð±¾³£Á¿·µ»Ø¸Ãº¯Êý±»¶¨ÒåʱµÄÃû×Ö£¨Çø·Ö´óСд£©¡£ÔÚ PHP 4 ÖиÃÖµ×ÜÊÇСд×ÖĸµÄ¡£
__CLASS__ ÀàµÄÃû³Æ£¨PHP 4.3.0 мӣ©¡£×Ô PHP 5 Æð±¾³£Á¿·µ»Ø¸ÃÀà±»¶¨ÒåʱµÄÃû×Ö£¨Çø·Ö´óСд£©¡£ÔÚ PHP 4 ÖиÃÖµ×ÜÊÇСд×ÖĸµÄ¡£
__METHOD__ ÀàµÄ·½·¨Ãû£¨PHP 5.0.0 мӣ©¡£·µ»Ø¸Ã·½·¨±»¶¨ÒåʱµÄÃû×Ö£¨Çø·Ö´óСд


Ïà¹ØÎĵµ£º

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

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

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


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

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

ʹÓà PHP ¿ª·¢»ùÓÚ Web ·þÎñµÄÓ¦ÓóÌÐò

תÔØ×Ô£ºhttp://www.ibm.com/developerworks/cn/webservices/1003_chenchen_phpws/index.html
PHP SOAP À©Õ¹
SOAP µÄÈ«³ÆΪ¼òµ¥¶ÔÏó·ÃÎÊЭÒé (Simple Object Access Protocol)¡£ËüÊÇÒ»ÖÖ»ùÓÚ XML
µÄ£¬¿ÉÀ©Õ¹µÄͨÐÅЭÒé¡£SOAP ÌṩÁËÒ»ÖÖ±ê×¼£¬Ê¹µÃÔËÐÐÔÚ²»Í¬Æ½Ì¨Éϲ¢Ê¹Óò»Í¬µÄ±à³ÌÓïÑÔ±àдµÄÓ¦ÓóÌÐò¿ÉÒÔ»¥Ïà½øÐÐͨÐÅ¡ ......

PHP V5.3 ÔÚ Unicode ·½ÃæÓкÎÐÂÌØÐÔ£¿

תÔØ×Ô£ºhttp://www.ibm.com/developerworks/cn/opensource/os-php-5.3unicode/index.html
Web
ÊÇÒ»¸öÓÃÀ´¿ª·¢È«ÇòÐÔÓ¦ÓóÌÐòºÍ·þÎñµÄÀíÏëƽ̨¡£Òª´´½¨Ò»¸öÕæÕý¾ßÓйú¼Ê÷ÈÁ¦µÄÓ¦ÓóÌÐò£¬±ØÐë¶ÔËü½øÐе÷ÕûÒÔ±ãÄܹ»ÒÔ¸÷ÖÖÓïÑԺͱàдϵͳ´¦ÀíºÍÏÔʾÊý¾Ý¡£
³£ÓÃËõд´Ê

HTML£º
³¬Îı¾±ê¼ÇÓïÑÔ
HTTP£º
³¬Îı¾´« ......

php»·¾³´î½¨

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Ð ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ