Results 1 to 3 of 3

Thread: Version issues

  1. #1
    Join Date
    Mar 2009
    Location
    Chennai, India
    Posts
    77
    Thanks
    16
    Thanked 7 Times in 6 Posts

    Default Version issues

    Hi, Is there any way to run an another instance of PHP with an older version?

    I have got lot of source codes and most of them seem to be creted for older version. I want to debug those codes and make changes so that It will work in newer versions... Before that I want to make sure that those source code actually work without any problem in older version...

    So, I have two questions
    1) Can i have more than 1 version of PHP installed in the same machine, if yes, then how to do that
    2)Where can I get older versions of php, starting from php 4.0
    Last edited by borris83; 04-03-2009 at 01:30 AM.

  2. #2
    Join Date
    Jun 2005
    Location
    英国
    Posts
    11,876
    Thanks
    1
    Thanked 180 Times in 172 Posts
    Blog Entries
    2

    Default

    1. Yes; precise installation details depend on your system;
    2. php.net is a good place to start.
    Twey | I understand English | 日本語が分かります | mi jimpe fi le jbobau | mi esperanton komprenas | je comprends français | entiendo español | tôi ít hiểu tiếng Việt | ich verstehe ein bisschen Deutsch | beware XHTML | common coding mistakes | tutorials | various stuff | argh PHP!

  3. #3
    Join Date
    Mar 2009
    Posts
    65
    Thanks
    13
    Thanked 4 Times in 4 Posts

    Default

    What version are you talking about? PHP 5 supports most PHP 4 features and most code that work in PHP 4 would work in PHP 5 unless you have error reporting turned to the maximum. There is, IMHO, no need to install an older version to debug those code. If it doesn't work in PHP 5, chances are it won't work in PHP 4. If it works in PHP 4, chances are that it will work in PHP 5.

    For PHP 3 and below, yah, but I rather you get those coding working in PHP 5 because even if you get them working in PHP 3, chances are that it won't work in PHP 5.

    The biggest thing you have to watch out for is register_globals for older source code. I don't recall having to recode much to get my code up to the latest versions. PHP is quite backward friendly.

Bookmarks

Posting Permissions

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