onlyican Posted December 9, 2006 Share Posted December 9, 2006 HeyStupid question, I have forgottonI am building a big websiteAnd to save updating when my server changes hostI want to build in the changes between PHP V4 and V5For exampleI am building a classI want to have in the globals page[code]<?phpdefine("PHP_VERSION", $php_version, 1);//then for the classif(PHP_VERSION == 4){//Same as the Function Name//Not really called MyClass, this is an examplefunction MyClass(){}}else{function __construct(){}}?>[/code]I know I can use the same function name as the construct in PHP V 5But there are other things I want to know the version for.Can anyone help me Link to comment https://forums.phpfreaks.com/topic/30041-get-php-version/ Share on other sites More sharing options...
redbullmarky Posted December 9, 2006 Share Posted December 9, 2006 [url=http://www.php.net/phpversion]phpversion[/url];) Link to comment https://forums.phpfreaks.com/topic/30041-get-php-version/#findComment-138112 Share on other sites More sharing options...
onlyican Posted December 9, 2006 Author Share Posted December 9, 2006 lol, see I told ya it was a stupid questionI thought I tried searching that on phpAnycrapThanks Link to comment https://forums.phpfreaks.com/topic/30041-get-php-version/#findComment-138114 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.