Moving from PHP4 to PHP5

Discussion in 'PHP' started by Zero55, Dec 26, 2009.

  1. #1
    is there any programs? because i have many files ::confused:
     
    Zero55, Dec 26, 2009 IP
  2. fierceservers

    fierceservers Peon

    Messages:
    338
    Likes Received:
    5
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You shouldn't need to change any files, just some scripts you have might not be compatible with PHP5. PHP4 is getting old though, and most are phasing it out.
     
    fierceservers, Dec 26, 2009 IP
  3. Zero55

    Zero55 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    well, the coder that am dealing with is telling me that he must re-write all the files again to php5 :S and this will take a few months so i must know if he's right or no
     
    Zero55, Dec 26, 2009 IP
  4. Colbyt

    Colbyt Notable Member

    Messages:
    3,224
    Likes Received:
    185
    Best Answers:
    0
    Trophy Points:
    210
    #4
    The amount of work depends on the scripts in question. Some might need a complete rewrite, most should just need minor changes. It sounds like he doesn't want the job to me.

    But to be fair to him, cleaning up non-remarked or poorly written code would not be a job I would choose to place at the top of the list either. :)
     
    Colbyt, Dec 26, 2009 IP
  5. Zero55

    Zero55 Peon

    Messages:
    18
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    well, its not that amount and ya he seems he doesnt want the job :S
     
    Zero55, Dec 26, 2009 IP
  6. Bohra

    Bohra Prominent Member

    Messages:
    12,573
    Likes Received:
    537
    Best Answers:
    0
    Trophy Points:
    310
    #6
    Well at times the php4 script doesnt need any modification it just works
     
    Bohra, Dec 26, 2009 IP
  7. Brandon_R

    Brandon_R Peon

    Messages:
    330
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    0
    #7
    Most of the things that should be updated from PHP4 to 5 is its OOP coding and depreciated functions. Most non OOP code will work fine if you aren't using any depreciated functions.
     
    Brandon_R, Dec 26, 2009 IP
  8. Kalyse

    Kalyse Peon

    Messages:
    1,221
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #8
    What is a link to your site. If you post a link it should be reasonably intuitive to gauge an ballpark idea of how accurate the developer is being based on what kind of pages you have.
     
    Kalyse, Jan 4, 2010 IP
  9. leopardceo

    leopardceo Peon

    Messages:
    72
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #9
    I also want to know more on this... Previously encountered such problems. Thank you!
     
    leopardceo, Jan 5, 2010 IP
  10. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #10
    Shouldnt really be a tough task, a common issue is deprecated functions, which have (in most cases) alternatives.

    Example:
    ereg_replace()

    PHP 5 Alternative:
    preg_replace()
     
    danx10, Jan 5, 2010 IP