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

Php·¾¶ÎÊÌâ¼°Æä½â¾ö·½·¨

³õѧPHPµÄʱºò£¬ÎÒÃǾ­³£±»PHPµÄ¾ø¶Ô·¾¶ºÍÏà¶Ô·¾¶ÅªµÄÔÎͷתÏò¡£Â·¾¶ÎÊÌâ¾­³£µ¼ÖÂinclude¼°requireÃüÁî²»ÄܼÓÔØµ½Ö¸¶¨µÄÒ³
Ãæ£¬´Ó¶øµ¼ÖÂWeb³ÌÐòÔËÐдíÎó¡£±¾ÎĽ«¸ú´ó¼ÒÒ»Æð̽ÌÖÒ»ÏÂPHP·¾¶ÎÊÌâµÄ³£Óýâ¾ö·½°¸¡£­
ÏÂÃæÎÒÃÇÏÈ×öÒ»¸ö¸ö¼òµ¥µÄʾÀý:­
­
ÉÏͼÊÇÒ»¸ö¼òµ¥WebÏîÄ¿µÄ½á¹¹Í¼,ÆäÖи÷ÎļþµÄ´úÂëÈçÏÂ: ­
root/index.php : ­
<?php ­
require_once ‘app/blog.php’;­
­
$blog=new Blog();­
echo $blog->GetBlogInfo();­
?>­
root/app/blog.php :[/B] ­
<?php ­
require_once ‘../lib/smarty/functions.php’;­
?> ­
<?php ­
class Blog­
{ ­
   public function GetBlogInfo()­
   {­
     return ‘This is a test of blog!’;­
   }­
} ­
?> ­
<?php ­
echo ‘root/app/blog.php loaded successed!</br>’; ­
?>­
Ê×ÏÈ,ÎÒÃÇ´Óä¯ÀÀÆ÷ÀïÖ±½ÓÊäÈëhttp://localhost/root/app/blog.php,ä¯ÀÀÆ÷ÏÔʾ£º­
———————————————————————-­
root/app/blog.php loaded successed!­
———————————————————————-­
Îļþ¼ÓÔØ³É¹¦£¬Ã»·¢ÉúÈκξ¯¸æ»ò´íÎó¡£­
½ÓÏÂÀ´£¬ÎÒÃÇÔÚä¯ÀÀÆ÷ÖÐÇëÇóÈçÏÂÍøÕ¾£ºhttp://localhost/root/index.php,ä¯ÀÀÆ÷ÏÔʾ³öÈçÏ´íÎóÐÅ
Ï¢:­
———————————————————————————­
Warning: require_once(../lib/smarty/functions.php)
[function.require-once]: failed to open stream: No such file or
directory in T:\Study\PHP_REL\Projects\root\app\blog.php on line 2­
Fatal error: require_once() [function.require]: Failed opening
required &l


Ïà¹ØÎĵµ£º

php evalº¯ÊýÓ÷¨ PHPÖÐeval()º¯ÊýС¼¼ÇÉ

php evalº¯ÊýÓ÷¨----PHPÖÐeval()º¯ÊýС¼¼ÇÉ
eval
½«Öµ´úÈë×Ö·û´®Ö®ÖС£
Óï·¨: void eval(string code_str);
´«»ØÖµ: ÎÞ
º¯Ê½ÖÖÀà: Êý¾Ý´¦Àí
ÄÚÈÝ˵Ã÷
±¾º¯Ê½¿É½«×Ö·û´®Ö®ÖеıäÁ¿Öµ´úÈ룬ͨ³£ÓÃÔÚ´¦ÀíÊý¾Ý¿âµÄÊý¾ÝÉÏ¡£²ÎÊý code_str ΪÓû´¦ÀíµÄ×Ö·û´®¡£ÖµµÃ×¢ÒâµÄÊÇ´ý´¦ÀíµÄ×Ö·û´®Òª·ûºÏ PHP µÄ×Ö·û´®¸ñʽ£¬Í¬Ê±ÔÚ½ ......

Aptana studio 2.0 +aptana php plugin 1.1

I’ve just updated Aptana Studio from 1.5 to 2.0 only to find out that the spectacular Aptana PHP plugin is not longer supported and its installation has been removed from the Install Additional Features view. However, with some tricks we can still install the old Aptana 1.5.1 in order to use i ......

¡¾±±¾©PHPÅàѵ¡¿±±¾©´óѧ˫ÓŹ¤³Ì¼ò½é

 ±±¾©´óѧÈí¼þÓë΢µç×ÓѧԺ“¶à²ã´Î¡¢¶à·½Ïò¡¢¶àÁìÓò¡¢Ä£¿é»¯” µÄ¿ª·Åʽ¿Î³ÌÌåϵ£¬¾­Êµ¼ù¼ìÑéÖ¤Ã÷£¬·Ç³£ÊÊÓÃÓÚÅàÑø“¶à²ã´Î¡¢ÊµÓÃÐÍ¡¢¸´ºÏ½»²æÐÍ¡¢¹ú¼Ê»¯”µÄÈí¼þÓë΢µç×ÓÈ˲š£ÎªÂú×ãÉç»áºÍÆóÒµ¶ÔÈ˲ŵÄÐèÇ󣬶ԸßÖÊÁ¿µÄ¼ÌÐø½ÌÓýÏîÄ¿µÄÐèÇ󣬱±¾©´óѧÈí¼þÓë΢µç×ÓѧԺ³ÉÁ¢Á˼ÌÐø½ÌÓýÖÐÐÄ£¬ÃæÏòÉ ......

¡¾±±¾©PHPÅàѵ¡¿±±¾©´óѧPHP¹¤³Ìʦ°à»ðÈÈÕÐÉú£¡


    ±±¾©´óѧPHP¹¤³Ìʦ°àÕÐÉú¼òÕÂ
   ÍøÖ·£ºwww.pku-it.com
      ½üÄêÀ´£¬PHPÓïÑÔÒÔÆä¼ò½àÁé»îµÄ±à³Ìģʽ¡¢ÈÕÇ÷ÍêÉÆµÄ¼¼ÊõÌåϵÒÔ¼°Ç¿ÓÐÁ¦µÄ¿ªÔ´Ö§³Ö£¬Ñ¸ËÙ·¢Õ¹³ÉΪȫÇò»¥ÁªÍøÓ¦ÓÃ×îΪ¹ã·ºµÄ±à³ÌÓïÑÔ¡£Ä¿Ç°ÒÑÓг¬¹ý40%µÄWEB³ÌÐòʹÓÃPHPÀ´±àд£¬°Ù¶È¡¢ÌÚÑ ......

YAHOO PHPÃæÊÔÌâ

ÖªµÀ²î¾àÁË£¬Å¬Á¦°É£¡
1. Which of the following will not add john to the users array?
1. $users[] = 'john';
2. array_add($users,'john');
3. array_push($users,'john');
4. $users ||= 'john';
2. What's the difference between sort(), asort() and ksort? Under what circumstances would you use each o ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ