You are here

function _homebox_check_php in Homebox 6.2

Same name and namespace in other branches
  1. 6.3 homebox.module \_homebox_check_php()

Check if PHP version is usable. Homebox 2 requires PHP of at least 5.2

Return value

TRUE if PHP is usable, otherwise FALSE

2 calls to _homebox_check_php()
homebox_requirements in ./homebox.module
Implementation of hook_requirements()
theme_homebox_admin_new_page in ./homebox.admin.inc
Theme the new-page form.

File

./homebox.module, line 1603
Homebox main file, takes care of global functions settings constants, etc.

Code

function _homebox_check_php() {
  $version = explode('.', phpversion());
  if ($version[0] >= 5) {
    if ($version[0] == 5 && $version[1] < 2) {
      return FALSE;
    }
    return TRUE;
  }
  return FALSE;
}