Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4

Thread: Upgrading PHP

  1. #1
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Upgrading PHP

    Hi I'm a total PHP rookie but I need to upgrade PHP (In windows XP) for a site.

    my questions are :
    1. How do I upgrade it?
    2. what are the risks?
    3. Any advice that may come in handy?

  • #2
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,250
    Thanks
    12
    Thanked 340 Times in 336 Posts
    1. that depends on how you installed it.
    - if you’re using WAMP or XAMPP, a reinstall of these programmes should suffice (note that they have to state in the description what PHP version they use).
    - if you installed via php.net’s provided installer, uninstall it and install the new version.
    - if you compiled from scratch, refresh the sources and recompile.

    2. forgetting to save your previous php.ini settings

    3. occasionally, default behaviour changes. e.g. register_globals is deprecated in PHP 5.3, XML handling changed radically from PHP 4 to PHP 5. nevertheless, all such changes are mentioned in the manual.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer

  • Users who have thanked Dormilich for this post:

    R0b!n (01-27-2011)

  • #3
    New to the CF scene
    Join Date
    Jan 2011
    Posts
    2
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Okay thanks a lot

  • #4
    Senior Coder Dormilich's Avatar
    Join Date
    Jan 2010
    Location
    Behind the Wall
    Posts
    3,250
    Thanks
    12
    Thanked 340 Times in 336 Posts
    on the other hand side, most POSIX systems (e.g. Linux) update PHP when a new version becomes available in their repositories.
    The computer is always right. The computer is always right. The computer is always right. Take it from someone who has programmed for over ten years: not once has the computational mechanism of the machine malfunctioned.
    André Behrens, NY Times Software Developer


  •  

    Tags for this Thread

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •