Forum Moderators: coopster

Message Too Old, No Replies

Script/Program to convert '<?' into '<?php'

I want to migrate from PHP4 to PHP5

         

guarriman

7:37 pm on Nov 25, 2007 (gmt 0)

10+ Year Member



Hi.

I want to migrate from PHP4 (where I use '<?') to PHP5 (where I must use '<?php').

Do you know a program or a Linux script to do it? Thank you very much.

dreamcatcher

11:51 pm on Nov 25, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi guarriman,

You can use <? and <?php in both 4 and 5. For <? you would have had short tags enabled in your PHP.ini file. Simple, enable it for 5 as well as you`ll have no problems.

dc

henry0

11:32 am on Nov 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Short tags are not supported in PHP6
(I think this is a correct statement)
if you have a good text editor you may search and replace
or (I never used it with tags) you may test if preg_replace [php.net] will do