ccvs_report
string ccvs_report(string session, string type)
Returns the status of a CCVS background process.
Returns:
OK on success; syntax error, uninitialized, or unknown on error
Description:
ccvs_report() is used to check on the status of the CCVS daemon and transaction upload processes (ccvsd and cvupload, respectively). To check the status of ccvsd, set type
to server; to check the status of cvupload, set type
to upload. Passing any other string as the type
parameter generates a syntax error.
The data returned must be fetched by using a call to ccvs_textvalue().
Version:
PHP 4 since 4.0.2
Example:
Report on the CCVS communication processes
echo "Checking the ccvsd status:\n"
$ret = ccvs_report($session, 'server');
echo "Returned: '$ret'; Return type: " . gettype($ret) . "\n";
echo "Textvalue: " . ccvs_textvalue($session) . "\n\n";
echo "Checking the cvupload status:\n";
$ret = ccvs_report($session, 'upload');
echo "Returned: '$ret'; Return type: " . gettype($ret) . "\n"
echo "Textvalue: " . ccvs_textvalue($session) . "\n\n";
|