I’m inheriting some html/php code.
I’ve installed apache and php on my windows box. At first, things sort of worked until I realized that php.ini is not being sourced. When I changed the path to the ini file to somewhere other than the “Program Files (x86)” dir, the file is sourced, but the code I’m running stops working.
The code has a bunch of places that say <? foobar ?> instead of <?php foobar?>
I tried googling for ‘<?’ vs ‘<?php’, but it ignored the <? parts.
What configuration do I need telling apache that <? means php?
you have to set
short_open_tag = Onin php.ini. However due to conflicts with XML this is generally seen as a bad idea.