PHP 环境不能正常运行

WBOY
Release: 2016-06-06 20:16:14
Original
1666 people have browsed it

我在下载了AppServ集成开发环境后,在AppServ的www目录下新建了一个hello world.php文件,但是在浏览器中输入http://localhost/helloworld.php总是打不开。显示这样的页面。。
PHP 环境不能正常运行

但是我测试输入http://localhost/网页确实能打开呀。。
PHP 环境不能正常运行

就想这样。。。。

我创建的文件是这样的。PHP 环境不能正常运行

里面的内容是这样的,。`

econ "hello world";
?>`

开启页面之前也打开了 APache start..请问我是哪一部出现问题,,导致网页一直无法显示。

回复内容:

我在下载了AppServ集成开发环境后,在AppServ的www目录下新建了一个hello world.php文件,但是在浏览器中输入http://localhost/helloworld.php总是打不开。显示这样的页面。。
PHP 环境不能正常运行

但是我测试输入http://localhost/网页确实能打开呀。。
PHP 环境不能正常运行

就想这样。。。。

我创建的文件是这样的。PHP 环境不能正常运行

里面的内容是这样的,。`

econ "hello world";
?>`

开启页面之前也打开了 APache start..请问我是哪一部出现问题,,导致网页一直无法显示。

你把文件后缀显示打开,你localhost显示的index(index.php),你现在加的是helloworld.php.php,输入localhost/helloworld.php当然找不到

上面讲的都差不多了,我来总结下...两个错误

  1. 文件后缀名被你隐藏了,开启后缀名你会发现你的文件名其实是 helloworld.php.php 若不会开启请点击这里

  2. econ "hello world"; 这里输出是echo 不是 econ

拜托输出函数大名叫echo 不叫econ

膜拜大神,大神你好

echo 错了
其次 后缀名没打开 其实你的文件名是 helloworld.php.php

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!