1
tank1955
Is PHP version query possible?
  • 2008/8/17 4:42

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Was wondering if there is anyway to acquire the current site's PHP version from within a module. Some of my Video Tube module functions, in the next release, are going to require PHP5 and it would be great if I could automatically disable the functions if an older version of PHP is detected.

2
iHackCode
Re: Is PHP version query possible?

CBB / LatestNews / Publisher / XM-Spotlight

(ノ◕ヮ◕)ノ*:・゚✧

3
tank1955
Re: Is PHP version query possible?
  • 2008/8/17 21:35

  • tank1955

  • Module Developer

  • Posts: 276

  • Since: 2007/9/7 1


Thanks, Bandit. I didn't realize it was that simple. Not sure how I overlooked that when I was searching. Your assistance is very much appreciated.

4
trabis
Re: Is PHP version query possible?
  • 2008/8/22 14:59

  • trabis

  • Core Developer

  • Posts: 2269

  • Since: 2006/9/1 1


You can also use function_exists()

http://php.net/function_exists

Functions can be made to emulate php5 functions so you can do a check to see if a function exists and, if not, include a function to replace it. This alternative functions can be found in the above site under each php5 function description