“WAMP服务器”问题。 PHP代码没有被执行。 [英] "WAMP Server" problem. PHP code not being executed.

查看:80
本文介绍了“WAMP服务器”问题。 PHP代码没有被执行。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是php的新手。我已经开始使用php作为客户端的结果。我已经下载了一个WAMP(WindowsApachéMySQLPHP)。我有一个问题:它是预先安装的,除了我尝试创建的.php文档之外,一切似乎都正常工作。我使用 http:// localhost / 来访问该文件,就像教程一样,我去买了,告诉我但这个简单的PHP甚至无法执行:

展开 | 选择 | Wrap | 行号

解决方案

您好。

当你尝试执行.php文件时会发生什么?

PHP代码是否会在浏览器中显示?

它是否在源中显示?

有任何错误吗?


我会建议一件事tho。

您使用<? ..?>代码中的标签。我建议使用<?php ...?>标签代替。前者将导致使用默认PHP设置(PHP5及更高版本)的服务器出现问题。



嗨。


当你尝试执行.php文件时会发生什么?

PHP代码是否会显示在浏览器中?

是否会在源代码中显示?

有什么错误吗?


我会建议你一件事。

你用<? ..?>代码中的标签。我建议使用<?php ...?>标签代替。前者将使用默认的PHP设置(PHP5及更高版本)在服务器上引发问题。



感谢您的帮助,标签是问题,现在我可以开始使用PHP



感谢您的帮助,标签是问题,现在我可以开始使用PHP

展开 | 选择 | Wrap | 行号

Hi I am new to php. I have started with php as a result of a client. I have downloaded a WAMP (Windows Apaché MySQL PHP). I have a problem: it is proparly installed and everything seems to be working fine except the .php document I try to create. I access the file using the http://localhost/ like the tutorial, I went buying, told me to do but this simple php can''t even execute:

Expand|Select|Wrap|Line Numbers

解决方案

Hi.

What happens when you try to execute the .php document?
Does the PHP code get displayed in the browser?
Does it get displayed in the source?
Are there any errors?

One thing I would advice tho.
You use <? .. ?> tags in your code. I would recommend using <?php ... ?> tags instead. The former will cause problems on servers using the default PHP settings (PHP5 and above).


Hi.

What happens when you try to execute the .php document?
Does the PHP code get displayed in the browser?
Does it get displayed in the source?
Are there any errors?

One thing I would advice tho.
You use <? .. ?> tags in your code. I would recommend using <?php ... ?> tags instead. The former will cause problems on server using the default PHP settings (PHP5 and above).

Thank you for the help, the tags was the problem and now I can start working with PHP


Thank you for the help, the tags was the problem and now I can start working with PHP

Expand|Select|Wrap|Line Numbers


这篇关于“WAMP服务器”问题。 PHP代码没有被执行。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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