0

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?

3

1 Answer 1

4

As I commented, turn

short_open_tag=on

in php.ini

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.