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.
- Open your php.ini file.
- Set line: short_open_tags = 1
- Reload Apache.
- Like said above, this is not recommended, but if you're just learning and creating sample applications, that is tolerable.
精彩评论