尊龙凯时人生就是博

ÔõÑù½â¾ö×°ÖÃthinkphp±¨´íÎÊÌâ

Ò»¡¢¹ýʧÌáÐÑ

ÔÚ×°ÖÃThinkPHPʱ£¬³£³£»á·ºÆðÒÔϹýʧÌáÐÑ£º

ÎÞ·¨·­¿ªÑ¹ËõÎļþ£¨open_basedirÏÞÖÆ£©

³ÌÐòÖ´ÐеÄʱ¼äÌáÐѸ澯£º

Á¬Ã¦Ñ§Ï°¡°PHPÃâ·ÑѧϰÌõ¼Ç£¨ÉîÈ룩¡±£»

Warning: require(D:\wamp\www\thinkphp\index.php): failed to open stream: No such file or directory in D:\wamp\www\thinkphp\test.php on line 2

³ÌÐòÖ´ÐеÄʱ¼äÌáÐѹýʧ£º

Fatal error: Class ‘PDO’ not found in /path/to/thinkphp/ThinkPHP/Library/Think/Db/Driver.class.php on line 34

¶þ¡¢½â¾öÒªÁì

ÎÞ·¨·­¿ªÑ¹ËõÎļþ

ÕâÊÇÓÉÓÚϵͳµÄopen_basedirÏÞÖÆÔì³ÉµÄ¡£ÎÒÃÇÎÞ·¨½âѹËõÎļþ£¬ÕâÊÇÓÉÓÚϵͳ³öÓÚÇ徲˼Á¿¹Ø±ÕÁËPHPÖеÄϵͳº¯Êý¡£ÎÒÃÇ¿ÉÒÔͨ¹ýÒÔÏÂÁ½ÖÖ·½·¨À´½â¾öÕâ¸öÎÊÌâ¡£

ÒªÁìÒ»£ºÐÞ¸Äphp.iniÉèÖÃÎļþ

·­¿ªapacheÉèÖÃÎļþ¼Ð£¨ÀýÈ磺D:\wamp\bin\apache\Apache2.2.21\conf£©£¬ÕÒµ½php.ini£¬ÔÚphp.iniÖÐËÑË÷open_basedir£¬½«ÆäÐÞ¸ÄΪ£º

open_basedir = “c:/wwwroot;c:/wwwroot/thinkphp”

ÆäÖÐc:/wwwrootΪÍøÕ¾¸ùĿ¼£¬c:/wwwroot/thinkphpΪThinkPHP¿ò¼ÜµÄ·¾¶¡£

ÒªÁì¶þ£ºÐÞ¸ÄApacheµÄhttpd.confÉèÖÃÎļþ

·­¿ªapacheÉèÖÃÎļþ¼Ð£¬ÕÒµ½httpd.conf£¬ÔÚËüµÄ×îºóÔöÌíÈçÏÂÉèÖãº

php_admin_value open_basedir "D:\wamp\www;D:\wamp\www\thinkphp"

µÇ¼ºó¸´ÖÆ

×¢£º±ØÐ轫php_admin_value open_basedirÉèÖÃÏî½ç˵ÔÚDirectory½ÚµãÄÚ¡£

Íê³ÉÉÏÊö²Ù×÷£¬ÖØÆôApache£¬ÎÊÌâ¾Í½â¾öÁË¡£

³ÌÐòÖ´ÐеÄʱ¼äÌáÐѸ澯

ÕâÊÇÓÉÓÚ³ÌÐòûÓÐÕÒµ½index.phpÎļþ¡£ÎÒÃÇÐèÒª½«test.phpÎļþÖеÄrequireÓï¾äÖеÄ·¾¶ÉèÖÃΪindex.phpÎļþµÄ·¾¶£¬ÈçÏ£º

require_once(‘D:/wamp/www/thinkphp/index.php’);

ÆäÖÐD:/wamp/wwwΪÍøÕ¾¸ùĿ¼£¬D:/wamp/www/thinkphpΪThinkPHP¿ò¼ÜµÄ·¾¶¡£

³ÌÐòÖ´ÐеÄʱ¼äÌáÐѹýʧ

ÕâÊÇÓÉÓÚPHPûÓÐ×°ÖÃPDOÀ©Õ¹Ôì³ÉµÄ¡£ÎÒÃÇÐèÒªÔÚphp.iniÖÐÕÒµ½extension=php_pdo_mysql.dllÕâÐУ¬È¥µôÇ°ÃæµÄ”;”£¬ÉúÑÄphp.iniÉèÖÃÎļþ¡£È»ºó´Óphp.iniÖÐËÑË÷extension_dir£¬È·ÈÏÕâ¸öĿ¼ÏÂÊÇ·ñÓÐphp_pdo_mysql.dllÎļþ£¬ÈôÊÇûÓеĻ°£¬ÐèÒªÏÂÔز¢×°ÖÃPDOÀ©Õ¹£¨Èçphp_pdo_mysql.dll£©¡£

ÒÔÉϾÍÊÇÔõÑù½â¾ö×°ÖÃthinkphp±¨´íÎÊÌâµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í尊龙凯时人生就是博ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ尊龙凯时人生就是博ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ尊龙凯时人生就是博

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
sitemap¡¢ÍøÕ¾µØͼ