简体   繁体   English

Wamp Server突然不执行php

[英]Wamp Server suddenly does not execute php

Not sure what happened but my wamp server suddenly does not execute any php instead it comments all php out like this: 不知道发生了什么,但是我的wamp服务器突然不执行任何php,而是将所有php注释掉,如下所示:

<!--?php
echo "hello world";

?-->

what the? 什么 (every file worked before so its not a coding issue) (每个文件之前都可以使用,因此不是编码问题)

Try changing the php short-open tags ( <? ... ?> ) to the long-open php tags ( <?php ... ?> ). 尝试将php短标签( <? ... ?> )更改为长打开php标签( <?php ... ?> )。 Just do it for one file. 只需要处理一个文件。 If it works, its a simple PHP setting ( short_open_tag ) 如果short_open_tag ,则它是一个简单的PHP设置( short_open_tag

I got something similar when I try to insert php code on editors like TinyMCE, you might try to write the code in notepad and the upload your file via FTP, or if you want to write php code on a web-based application you could use ajaxplorer or extplorer. 当我尝试在诸如TinyMCE之类的编辑器中插入php代码时,我遇到了类似的情况,您可以尝试在记事本中编写代码,然后通过FTP上传文件,或者如果您想在基于Web的应用程序中编写php代码,则可以使用ajaxplorer或extplorer。

To be 100% sure that is not a problem with the file you should dowload it via FTP an then open it with notepad. 要100%确保文件没有问题,您应该通过FTP下载该文件,然后使用记事本打开它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM