wampserver localhost之后点击项目报错

老虎哎白菜 发布于 2016/02/16 08:28
阅读 805
收藏 0

就一个index.php文件 在wampserver点击项目进去报错 这个是什么原因  怎么解决

代码:<?php
 define('APP_PATH','./Application/');
require './ThinkPHP/ThinkPHP.php';
?>


报错信息:

( ! ) Warning: require(./ThinkPHP/ThinkPHP.php) [function.require]: failed to open stream: No such file or directory in F:\wampserver\wamp\www\app\index.php on line 3
Call Stack
# Time Memory Function Location
1 0.0006 362744 {main}( ) ..\index.php:0


( ! ) Fatal error: require() [function.require]: Failed opening required './ThinkPHP/ThinkPHP.php' (include_path='.;C:\php\pear') in F:\wampserver\wamp\www\app\index.php on line 3
Call Stack
# Time Memory Function Location
1 0.0006 362744 {main}( ) ..\index.php:0wampserver wampserver
加载中
0
方唐镜
方唐镜
www就是默认的根目录了,你的路径不对吧
返回顶部
顶部