My script is not working since host upgraded php to 5.2.12

Discussion in 'PHP' started by globalcashsite, Feb 9, 2010.

  1. #1
    Hi guys

    I left my script in working condition but my host upgraded php to 5.2.12 and since that upgrade my script is not working. I troubleshoot and find that script is not connecting with database.

    Any idea what is difference between previous i.e. 4.... and 5.2.12 version regarding database connectivity? Which things I need to check?

    GCS
     
    globalcashsite, Feb 9, 2010 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    There are a ton of changes from 4 to 5.2.

    Turn error_reporting to E_ALL.

    Most likely it was something like register_globals. If you can, try compare your php.ini files between the 2 versions.
     
    jestep, Feb 9, 2010 IP
  3. JoeWJ

    JoeWJ Peon

    Messages:
    15
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I had that problem to. I just emailed my host asking to change back to 4.
     
    JoeWJ, Feb 12, 2010 IP
  4. ProtegeSales

    ProtegeSales Guest

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    You should try posting the error here so that we can help you troubleshoot the problem.

    Thanks.
     
    ProtegeSales, Feb 12, 2010 IP
  5. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Not a good plan. PHP 4 will be gone forever sooner or later. Might as well deal with the upgrade on your own terms, rather than having to rush when it's suddenly announced that you can't use anymore.
     
    SmallPotatoes, Feb 13, 2010 IP
  6. Nei

    Nei Well-Known Member

    Messages:
    106
    Likes Received:
    3
    Best Answers:
    1
    Trophy Points:
    170
    #6
    Yes, it'll be better to find parts of code which must be changed.
    But if there are lots of mistakes - you can try to add such line to your .htaccess file:

     
    Nei, Feb 13, 2010 IP