reinstalled xampp: messed up my work :(

Joined
12 Feb 2006
Posts
17,645
Location
Surrey
i just reinstalled xampp on my laptop and i can only assume one of the default settings have which is messing up my work and as it's always been default for how i want it previously i have no clue how to change it how i want.

the problem appears to be <?= no longer works and needs to be <?php echo...

how do i change it to work how i want? should i start using <?php echo from now on or is <?= still ok to use?
 
You need to enable short tags in php.ini; just search for short_open_tag and change it from "Off" to "On":

Code:
short_open_tag = On

Short tags are generally considered bad practice for any code that might need to be ported to other platforms, as you can't be sure that the environment it'll run in will have them enabled.

If it's a personal project, however, and you can ensure that the server will always have them enabled, they're fine.
 
Back
Top Bottom