include_path致命错误xampp [英] include_path fatal error xampp

查看:59
本文介绍了include_path致命错误xampp的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用安装程序安装了Xampp 1.8.3,并且试图将htdocs文件夹从 C:\ xampp \ htdocs 移到 C:\ Users \Håvard\ htdocs.我已经对xampp中的 httpd.conf 文件进行了必要的编辑,并且Apache正在启动,在那里没有问题.

I've installed Xampp 1.8.3 with the installer and I'm trying to move my htdocs folder from C:\xampp\htdocs to C:\Users\Håvard\htdocs. I've done the necessary edits to the httpd.conf file in xampp and Apache is starting, no problem there.

几天来我一直在努力解决这个问题,甚至发布了

I've been struggling with this problem for a few days now, I even posted a question on it here earlier. Since then I've gotten a little bit further in my quest for a solutiion and I've come to the conclusion that this is a problem regarding the norwegian letter in my Windows-username (and therefore userfolder)

当我尝试以 localhost/project/index.php 打开我的PHP项目时,出现以下消息:

When I try to open my PHP project as localhost/project/index.php i get this message:

警告:未知:无法打开流:在第0行上未知

Warning: Unknown: failed to open stream: No such file or directory in Unknown on line 0

致命错误:未知:需要打开失败'C:/Users/Håvard/htdocs/project/index.php'(include_path ='.; C:\ xampp \ php \ pear \')在第0行上未知

Fatal error: Unknown: Failed opening required 'C:/Users/Håvard/htdocs/project/index.php' (include_path='.;C:\xampp\php\pear\') in Unknown on line 0

我相信挪威字母是导致出现此消息的原因,是如果我将httpd.conf中的DocumentRoot和Directory更改为该文件夹之外的其他内容(例如:C:/Users/丹尼尔(Daniel).

The reason that I believe the norwegian letter is the reason for this message is that if I change the DocumentRoot and Directory in httpd.conf to anything else besides this folder (ex: C:/Users/Daniel) it works like a charm.

为什么会收到此错误消息?我用其他documentroot尝试过的index.php没什么问题.为什么Håvard"文件夹有问题?是挪威字母还是我忽略的其他内容?

Why am I getting this error message? There is nothing wrong with my index.php as I've tried it with a different documentroot... Why is the "Håvard"-folder the problem? Is it the norwegian letter, or something else I have overlooked?

推荐答案

这一次发生在我身上,我的问题是我已将一个旧项目提取到xampp文件夹中.这个旧项目包括一个.htaccess文件,该文件与xampp文件夹中的所有内容都弄混了.解决方案是删除.htaccess文件.我希望这对某人有帮助.

This happened to me once, My problem was that i had extracted an old project into the xampp folder. This old project included an .htaccess file which was messing with everything within the xampp folder. The solution was to delete the .htaccess file. I hope this helps someone.

这篇关于include_path致命错误xampp的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆