开发者

Php <? tags on WAMP

I just installed WAMP, and I can't get my <? to work. Is there a module I need to enable?开发者_C百科

Thanks.


You need to have short_open_tags enabled to use the <? open tag. But I recommend you not to use them but to use the standard open tag <?php for compatibility and portability reasons.


  1. Open your php.ini file.
  2. Set line: short_open_tags = 1
  3. Reload Apache.
  4. Like said above, this is not recommended, but if you're just learning and creating sample applications, that is tolerable.
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜