1
我在我的电脑上安装了XAMPP for Windows
。我启动它并检查了状态,它说PHP
已激活。然后我去到以下目录:C:\inetpub\wwwroot
并创建了一个文件名phpinfo.php
在它下面:让PHP在XAMPP上运行
<?php phpinfo(); ?>
然后我打开我的网页浏览器(我试过Internet Explorer
和Google Chrome
),并键入:
http://localhost/phpinfo.php
在地址栏中。我得到了以下错误:
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 11/10/12 10:03:28 Apache/2.2.21 (Win32)
mod_ssl/2.2.21 OpenSSL/1.0.0e PHP/5.3.8 mod_perl/2.0.4 Perl/v5.10.1**
如果我只是在http://localhost/
型,我得到的XAMPP startup page
就好了。
我双倍和三重检查,我的phpinfo.php
是在正确的目录中,我在洛杉矶为什么我可能做错了。
是的!那样做了。我需要学习正确阅读文档!!!!感谢您快速回答一个愚蠢的问题 – user758362