开发者社区> 问答> 正文

wampserver localhost之后点击项目报错?报错

就一个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

展开
收起
爱吃鱼的程序员 2020-06-10 14:22:33 415 0
1 条回答
写回答
取消 提交回答
  • https://developer.aliyun.com/profile/5yerqm5bn5yqg?spm=a2c6h.12873639.0.0.6eae304abcjaIB

    www就是默认的根目录了,你的路径不对吧

    2020-06-10 14:22:50
    赞同 展开评论 打赏
问答分类:
PHP
问答地址:
问答排行榜
最热
最新

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载