Question

I just installed WAMP, and I can't get my <? to work. Is there a module I need to enable?

Thanks.

Was it helpful?

Solution

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.

OTHER TIPS

  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.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top