public static function setCliTitle($nameingPrefix)
    {
        $succeeded = false;
        $num_running = self::getNumProcRunning($nameingPrefix);
        
        if (function_exists('cli_set_process_title'))
        {
            cli_set_process_title($nameingPrefix . $num_running);
            $succeeded = true;
        }
        
        return $succeeded;
    }
public static function setCliTitle($nameingPrefix)
    {
        $succeeded = false;
        $num_running = self::getNumProcRunning($nameingPrefix);
        
        if (function_exists('cli_set_process_title'))
        {
            cli_set_process_title($nameingPrefix . $num_running);
            $succeeded = true;
        }
        
        return $succeeded;
    }
public static function setCliTitle ( $ nameingPrefix ) { $ succeeded = false ; $ num_running = self :: getNumProcRunning ( $ nameingPrefix ) ; if ( function_exists ( 'cli_set_process_title' ) ) { cli_set_process_title ( $ nameingPrefix . $ num_running ) ; $ succeeded = true ; } return $ succeeded ; }
Sets the title of the process and will append the appropriate number of
already existing processes with the same title.
WARNING - this will fail and return FALSE if you are on Windows
@param string $nameingPrefix - the name to give the process.
@return boolean - true if successfully set the title, false if not.
Sets the title of the process and will append the appropriate number of already existing processes with the same title . WARNING - this will fail and return FALSE if you are on Windows