在 xampp 中找不到对象
我在使用 xampp 时遇到问题.希望大家能解决.
当我输入地址localhost"时,它只会显示It works".但是当我输入localhost/xampp"时,它会将我带到 xampp 的欢迎页面.为什么每个人都只是输入localhost"?
我在文件夹 htdocs 下创建了一个简单的 php hello world 程序进行测试,并将其命名为 test.php.然后当我输入localhost/xampp/test.php"时,它会显示如下所示的消息-
<块引用>
找不到对象!
在此服务器上找不到请求的 URL.如果您输入了 URL请手动检查您的拼写,然后重试.
如果您认为这是服务器错误,请联系网站管理员.错误 404 本地主机 9/3/2013 2:23:28 AM Apache/2.2.14 (Win32) DAV/2mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
我该怎么办?
解决方案我遇到了同样的问题,但我没有找到解决方案.
解决方案实际上很琐碎,甚至很愚蠢:)
我在记事本中写了我的 hello world 文件,保存时我输入了:测试.php
但我未能将另存为类型"选项从文本文档"更改为所有文件".
是的,就是这样,它奏效了!
我假设您已经找到了解决方案.我希望这对某人有所帮助.
I have got a problem using xampp. I hope u guys are able to solve it.
When i type in the address "localhost" it just shows "It works". But when i type "localhost/xampp" then it takes me to the welcome page of xampp. Why is that when everybody gets that just typing "localhost"?
I created a simple php hello world program to test under the folder htdocs and named it test.php. Then when i type in "localhost/xampp/test.php" it shows the message shown below-
Object not found!
The requested URL was not found on this server. If you entered the URL manually please check your spelling and try again.
If you think this is a server error, please contact the webmaster. Error 404 localhost 9/3/2013 2:23:28 AM Apache/2.2.14 (Win32) DAV/2 mod_ssl/2.2.14 OpenSSL/0.9.8l mod_autoindex_color PHP/5.3.1 mod_apreq2-20090110/2.7.1 mod_perl/2.0.4 Perl/v5.10.1
What should i do?
解决方案I had the same problem but no where did I find a solution.
The solution is actually quite trivial, silly even :)
I wrote my hello world file in notepad and when saving I typed: test.php
but I failed to change the "save as type" option from "Text Document" to "All Files".
Yup, that's it and it worked!
I am assuming you have already found your solution. I hope this helps somebody.
相关文章