32 if (substr($a_location, 0, 4) ==
"http") {
40 $c->setOpt(CURLOPT_SSL_VERIFYHOST, 0);
41 $c->setOpt(CURLOPT_SSL_VERIFYPEER, 0);
42 $c->setOpt(CURLOPT_MAXREDIRS, 3);
43 $c->setOpt(CURLOPT_HEADER, 0);
44 $c->setOpt(CURLOPT_RETURNTRANSFER, 1);
45 $c->setOpt(CURLOPT_FILE, $file);
56 $size = getimagesize($a_location);
59 if (is_file($a_location)) {
60 $size = getimagesize($a_location);
63 if (!isset($size) || $size ===
false) {
static makeDirParents(string $a_dir)
Create a new directory and all parent directories.
static _isCurlExtensionLoaded()
static getDataDir()
get data directory (outside webspace)