PHP Extension
PHP Extension
Example: Http.GetCacheRoot method
Demonstrates theGetCacheRoot method.
Chilkat PHP Extension Downloads
<?php
include("chilkat.php");
$http = new CkHttp();
// Establish 2 cache root directories.
$http->AddCacheRoot('c:/example/httpCacheA/');
$http->AddCacheRoot('c:/example/httpCacheB/');
print 'Number of cache roots: ' . $http->get_NumCacheRoots() . "\n";
print '1st cache root: ' . $http->getCacheRoot(0) . "\n";
print '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/
?>