<?= ?> does not work
Posted by: mashka10 (---.dyn.columbia.edu)
Date: October 10, 2012 11:19PM

Works fine on MAMP and other web-servers. WAMP ignores it. Why? I installed the version with PHP 5.4.3.

Options: ReplyQuote
Re: <?= ?> does not work
Posted by: RiggsFolly (---.ppp.as43234.net)
Date: October 11, 2012 01:24AM

Wamps default install has short_open_tag = Off

edit the php ini file and change it to

short_open_tag = On

To edit the ini file use
left click on wampmanager -> PHP -> php.ini


there is more than one php.ini to allow for php and apache version swapping. Use this to ensure you get the right file.

Options: ReplyQuote
Re: <?= ?> does not work
Posted by: mashka10 (---.beren.guest.wireless.yu.edu)
Date: October 11, 2012 07:58PM

Thanks! Never thought of it being disabled!

Options: ReplyQuote


Sorry, only registered users may post in this forum.