Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Php <? tags on WAMP

Tags:

php

wamp

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

Thanks.

like image 725
Haim Bender Avatar asked Dec 05 '09 23:12

Haim Bender


2 Answers

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.

like image 182
Gumbo Avatar answered Oct 15 '22 08:10

Gumbo


  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.
like image 31
AlexA Avatar answered Oct 15 '22 08:10

AlexA