php - php无法打开strem
问题描述
我刚刚安装了我的 xampp,我想打开一个 CodeIgniter 项目。但是当我打开这个项目时出现这个错误。谁能帮我?
警告:require_once(C:\xampp\htdocs\Requisition_Project\system\core/CodeIgniter.php):无法打开流:C:\xampp\htdocs\Requisition_Project\index.php 中没有这样的文件或目录在第 315 行
致命错误:require_once():在 C:\xampp\htdocs\ 中打开所需的 'C:\xampp\htdocs\Requisition_Project\system\core/CodeIgniter.php' (include_path='C:\xampp\php\PEAR') 失败第 315 行的 Requisition_Project\index.php
解决方案
你能在你的 .htaccess 中试试这个吗?这个是在 codeigniter 中使用的新鲜 .htaccess 文件
RewriteEngine On
#RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php/$1
推荐阅读
- angular - Presigned 下载并在对象中查看
- java - HystrixCommandAspect 在纯 Java 应用程序中导致 NoSuchMethodError
- vba - VBA - 通过工作表运行的字典,其中包含一个键和两个相关列
- java - 打开片段
- ios - 在 iOS 应用程序中使用 FBSDKLoginManager 拒绝某些 Facebook 用户的 Facebook 个人资料链接
- r - R - 查找按位二进制邻居(一次翻转一位)
- ios - 使用 Swift for iOS 处理来自已关闭应用程序的推送通知,如何显示它然后返回关闭或暂停?
- c# - XAMARIN:我的 Listview 中有两个标签,我需要在 .cs 中获取它们的文本,但我无法通过 x:Name 访问它们
- java - 需要关于java线程池执行队列处理的建议
- java - 在 Kotlin 中使用 SignalR