22 if (substr($a_location, 0, 4) ==
"http") {
23 include_once(
"./Services/WebServices/Curl/classes/class.ilCurlConnection.php");
31 $c->setOpt(CURLOPT_SSL_VERIFYHOST, 0);
32 $c->setOpt(CURLOPT_SSL_VERIFYPEER, 0);
33 $c->setOpt(CURLOPT_MAXREDIRS, 3);
34 $c->setOpt(CURLOPT_HEADER, 0);
35 $c->setOpt(CURLOPT_RETURNTRANSFER, 1);
36 $c->setOpt(CURLOPT_FILE, $file);
47 $size = @getimagesize($a_location);
50 $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)