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.

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.