danish_555 — 2013-09-02T08:26:13-04:00 — #1
I am new in php, and I got some code to be work on....
Now that person coded something like that
When I run this to my localhost, it does not recognize these type of coding until i do <?php ?> and <?php echo ?>
Please let me know how to enable this in my WAMPSERVER php INI....
Thanks in advance
fretburner — 2013-09-02T08:35:28-04:00 — #2
In your php.ini file, search for
short_open_tag and make sure it's enabled:
short_open_tag = On
I've always avoided using short tags in my code, as you can't guarantee that they will be enabled in every environment where your code is run, but apparently the short echo tag (<?= ?>) is permanently enabled from PHP 5.4 onwards.
Edit: Don't forget to restart Wamp server after editing php.ini.