SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict
    Join Date
    Nov 2009
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Specifying required PHP version for an application

    Hi,

    I built a PHP application (no MySQL). What are the things I should keep in mind when figuring out the minimum PHP version it will require? One think I will do is to check all PHP functions I used in the tool and see what PHP version they require. Any other things I should check?

    For example, when I check ucwords() function, this page http://tr1.php.net/manual/en/function.ucwords.php shows (PHP 4, PHP 5) but what PHP 4.x it doesn't say.

    Thanks for any ideas.

  2. #2
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    925
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    If the manual doesn't specify any "dot" version it means that the function is available for all minor releases in that version, so in this case ucwords is available in any release of PHP 4 and 5. Contrast it with this example (PHP 4 >= 4.2.0, PHP 5) - this notation says that md5_file is available in PHP 4.2.0 and higher for version 4 and all releases in version 5.

  3. #3
    SitePoint Addict
    Join Date
    Nov 2009
    Posts
    281
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by Lemon Juice View Post
    If the manual doesn't specify any "dot" version it means that the function is available for all minor releases in that version, so in this case ucwords is available in any release of PHP 4 and 5. Contrast it with this example (PHP 4 >= 4.2.0, PHP 5) - this notation says that md5_file is available in PHP 4.2.0 and higher for version 4 and all releases in version 5.
    Thanks a lot. Interestingly, I didn't know how to read that version info till now. It all makes more sense now.


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
  •