shortcut <?= expression ?> doesn't work
Posted by: D60 (216.191.152.---)
Date: November 27, 2006 04:24PM

I downloaded and installed WAMP. It works well EXCEPT one problem: the shortcut <?= expression ?> doesn't work. How to fix it? Thank you very much.

Options: ReplyQuote
Re: shortcut doesn't work
Posted by: yfastud (72.236.169.---)
Date: November 27, 2006 04:38PM

should use <?php and ?> instead

Options: ReplyQuote
Re: shortcut doesn't work
Posted by: D60 (216.191.152.---)
Date: November 27, 2006 05:11PM

Thanks yfastud.
I checked php.ini and found short_open_tag was set as Off



Post Edited (11-27-06 17:13)

Options: ReplyQuote
Re: shortcut doesn't work
Posted by: yfastud (72.236.169.---)
Date: November 27, 2006 06:04PM

yeah, it's off by default, but suggest that your should use full tag instead turn short_open_tag on, so your code will be compatible to any server later on.

Options: ReplyQuote


Sorry, only registered users may post in this forum.