worldask
worldask

Reputation: 1837

how to support <? ?> php code embedding in html?

I have to migrate a php website from windows to centos. But I found that so many php codes embedding in html are wrapped in

<? echo sth ?>

but not

<?php echo sth ?>

so those php files don't work.

my OS is centos6.4 64bit, and the web server is Apache/2.2.15

anyone help me?

Upvotes: 0

Views: 54

Answers (1)

Limiter
Limiter

Reputation: 497

As I commented, turn

short_open_tag=on

in php.ini

Upvotes: 4

Related Questions