ccvs_init
string ccvs_init(string configuration_name)
Initializes a CCVS session according to a given configuration.
Returns:
Session ID on success; empty string on failure
Description:
ccvs_init() initializes a CCVS session, making it ready for use. configuration_name
is the name of a configuration to read; this will have been set up when the CCVS installation was configured. Note that you don't supply the pathname of the configuration file—simply its name. CCVS will search in the directory specified by the CCVS_CONFIG_DIR environment variable, or, if that hasn't been set, in the default directory (set when CCVS was configured), for a matching configuration.
Version:
PHP 4 since 4.0.2
Example:
Initialize a CCVS session
echo "Trying a presumably valid configuration:\n";
if (!$session = ccvs_init('ccvs')) {
echo "Failed to initialize the session.\n";
}
|