You are here

function _phantomjs_capture_get_binary in PhantomJS Capture 7

Returns the absolute path with the binary to the installed PhantomJS.

Return value

string|boolean The executable PhantomJS binary or FALSE if not found.

3 calls to _phantomjs_capture_get_binary()
phantomjs_capture_admin_form in ./phantomjs_capture.module
The administration form.
phantomjs_capture_screen in ./phantomjs_capture.module
Captures a screen shot using PhantomJS by calling the program.
_phantomjs_capture_get_version in ./phantomjs_capture.module
Returns the version number of the currently install PhantomJS.

File

./phantomjs_capture.module, line 215
Defines the administration interface and utility functions to use PhantomJS and test screen shot capture functions.

Code

function _phantomjs_capture_get_binary() {
  $binary = variable_get('phantomjs_capture_binary', '/usr/local/bin/phantomjs');
  if (!file_exists($binary)) {
    return FALSE;
  }
  return $binary;
}