且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

“WAMP服务器”问题。 PHP代码没有被执行。

更新时间:2023-02-22 18:30:21

您好。

当你尝试执行.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


登录 关闭
扫码关注1秒登录
“WAMP服务器”问题。 PHP代码没有被执行。
发送“验证码”获取 | 15天全站免登陆
上一篇 : :如何将几何数据转换为MS SQL Server 2008中的地理数据?下一篇 : 连接到MS Project Server

相关阅读

技术问答最新文章