PHP
Chilkat2 PHP
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat PHP Downloads
<?php
use Chilkat2\Http;
$http = new Http();
// Establish 2 cache root directories.
$http->AddCacheRoot('c:/example/httpCacheA/');
$http->AddCacheRoot('c:/example/httpCacheB/');
echo 'Number of cache roots: ', $http->NumCacheRoots, "\n";
echo '1st cache root: ', $http->GetCacheRoot(0), "\n";
echo '2nd cache root: ', $http->GetCacheRoot(1), "\n";
// Output:
// Number of cache roots: 2
// 1st cache root: c:/example/httpCacheA/
// 2nd cache root: c:/example/httpCacheB/