Forum Moderators: coopster

Message Too Old, No Replies

PHP Short tags issue

         

ridicacool

5:31 pm on Jan 26, 2010 (gmt 0)

10+ Year Member



I am configuring a new server and moving some old content over to it.

A lot of the old content uses php's short tags "<? ?>" or "<?= ?>". The new server has short tags turned on:

short_open_tag = On

But I know for sure there are some pages that use "<?= ?>" that are not being processed by PHP.

I'd love some help here, I can't seem to figure out why it wouldn't process it when the option is turned on.

(oh, and I'm on PHP 5.2.12 suhosin)

jatar_k

6:37 pm on Jan 26, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld ridicacool,

can you isolate which pages are not being processed?

have you tried switching the tags on those pages to see if that's the only issue? What about the file extension? maybe something else is going on.

ridicacool

6:40 pm on Jan 26, 2010 (gmt 0)

10+ Year Member



Thanks for the reply! I'm really banging my head on the wall with this one...

yeah - It parses the standard <?php ?> just fine. I just confirmed that it's multiple files, all with the .php extension.

any other ideas?

ridicacool

7:26 pm on Jan 26, 2010 (gmt 0)

10+ Year Member



turns out the problem was that the php.ini file was duplicated and moved to a different location.

Solved

jatar_k

4:00 pm on Jan 27, 2010 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



good catch, that would be the next question