22 if (substr($a_location, 0, 4) ==
"http")
24 include_once(
"./Services/Webservices/Curl/classes/class.ilCurlConnection.php");
33 require_once
'./Services/Http/classes/class.ilProxySettings.php';
41 $c->setOpt(CURLOPT_PROXY, $proxy);
43 $c->setOpt(CURLOPT_MAXREDIRS, 3);
44 $c->setOpt(CURLOPT_HEADER, 0);
45 $c->setOpt(CURLOPT_RETURNTRANSFER, 1);
46 $c->setOpt(CURLOPT_FILE,
$file);
48 $size = @getimagesize($a_location);
53 $size = @getimagesize($a_location);
58 $size = @getimagesize($a_location);
static makeDirParents($a_dir)
Create a new directory and all parent directories.
static _isCurlExtensionLoaded()
Check if curl extension is loaded.
static getDataDir()
get data directory (outside webspace)
static _getInstance()
Getter for unique instance.