I have upgraded my server to 5.2 and now getting problem with using <?=?> instead of echo when inserting the code in html documents. It requires me to change all these <?=?> code to <?php echo "" ?> , is there a way to fix the problem or I really need to modify all my script?
You should never have <?= or "short tags" anyway as some hosts and as you have witnessed, default settings, disable short tags. Change short_open_tag = Off to short_open_tag = On in your php.ini to change this.
<?= requires short_open_tags to be enabled for it to work. Try setting it to on your your php.ini file or via a call to ini_set. Having said that I thought that short_open_tags was deprecated and being removed at some point soon (maybe not until PHP 6) so I'd just go and fix it now, anyway.
I think it's his local server. Yes, and I think that is the problem, PHP 5.2 disables short_tags by default, good riddance