找不到对象 - XAMPP [英] Object not found - XAMPP

查看:39
本文介绍了找不到对象 - XAMPP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近在我的笔记本电脑上安装了 XAMPP - windows-7 64 位.我刚刚用 HTML 编写了一个非常基本的Hello World"脚本.但是,但是,当我尝试运行它时,它说找不到对象.错误 404.

I recently installed XAMPP on my laptop - windows-7 64-bit. I just wrote a very basic and elementary "Hello World" script in HTML. But, however when i'm trying to run it, it says Object Not found. Error 404.

这就是我正在做的事情:

Here's what i'm doing:

  1. 编写脚本.
  2. 在 xampp/apache/htdocs 中将其保存为 test.html.
  3. 打开浏览器,在为 URL 提供的空白处输入 localhost/test.html.

奇怪的是,我能够运行存储在 xampp/apache/htdocs 中的 index.html 文件.而且我还能够运行本地主机页面.但是我正在创建的任何新页面,我都无法运行它.请帮我解决这个问题.

The bizarre thing is, i am able to run the index.html file stored in xampp/apache/htdocs. And i'm also able to run the localhost page. But any new page that i'm creating, i'm unable to run it. Please help me solve this problem.

提前谢谢你:)

推荐答案

xampp 好像找不到你的文件.

It seems xampp is not able to locate your file.

检查 XAMPPapacheconfhttpd.conf 中的 DocumentRoot 设置,找出当前指向哪个文件夹.

Check DocumentRoot setting in XAMPPapacheconfhttpd.conf to find currently it is pointing to which folder.

如果您愿意,可以将其指向其他文件夹,例如,

If you want you can point it to some other folder like,

D:/phpprojects/

D:/phpprojects/

顺便说一句,您确定 htdocs 在 xampp/apache/htdocs 中吗?我的在 xampp/htdocs 中.

By the way, You sure htdocs is in xampp/apache/htdocs ? Mine is in xampp/htdocs.

这篇关于找不到对象 - XAMPP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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