I need advicewith php installation

Discussion in 'PHP' started by countrydj, Dec 18, 2011.

  1. #1
    Hi Guys...

    I have a server running php5.2
    I am setting upa new server, running centos 6, which runs php5.3

    I have thousands of php web pages that I will have to transfer to the new server.

    This is my problem:

    All my php pages start with <? and not <?php

    I have found that the new server running php5.3 will not accept <? . It requires <?php at the start of each page.

    Is there any setting that I can modify that will allow <? to work ???

    The task of changing ALL my web pages to <?php is daunting.

    Thanks in advance,

    John C
     
    countrydj, Dec 18, 2011 IP
  2. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #2
    On the new server, enable short tags - ON
     
    MyVodaFone, Dec 18, 2011 IP
  3. countrydj

    countrydj Active Member

    Messages:
    41
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    Many thanks for the solution.
    I knew that it was a matter of editing the php.ini file, but I couldn't remember what the edit was.
    Problem solved.
    Thank you very much.

    John C
     
    countrydj, Dec 18, 2011 IP