/** * Finds a suitable command to run cron * * @return string command **/ function getCommand() { $commands = array(@WPOTools::getBinaryPath('curl'), @WPOTools::getBinaryPath('wget'), @WPOTools::getBinaryPath('lynx', ' -dump'), @WPOTools::getBinaryPath('ftp')); return WPOTools::pick($commands[0], $commands[1], $commands[2], $commands[3], '<em>{wget or similar command here}</em>'); }