Commit 3afe14f4 authored by Okthane's avatar Okthane

'_'

parent 09015413
......@@ -12,9 +12,9 @@
// if(array_key_exists($ext, $allowed))
// {
$ch = curl_init();
// curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_CAINFO,__DIR__ . DIRECTORY_SEPARATOR . 'certif.cer');
curl_setopt($ch, CURLOPT_CAPATH,__DIR__ . DIRECTORY_SEPARATOR);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
// curl_setopt($ch, CURLOPT_CAINFO,__DIR__ . DIRECTORY_SEPARATOR . 'certif.cer');
// curl_setopt($ch, CURLOPT_CAPATH,__DIR__ . DIRECTORY_SEPARATOR);
curl_setopt($ch, CURLOPT_URL, 'https://api.remove.bg/v1.0/removebg');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_POST, 1);
......@@ -36,9 +36,9 @@
}
curl_close($ch);
// $fp = fopen($_FILES["photo"]["name"]."no-bg.png", "wb");
$fp = fopen("no-bg.png", "wb");
fwrite($fp, $result);
fclose($fp);
// $fp = fopen("no-bg.png", "wb");
// fwrite($fp, $result);
// fclose($fp);
// }
// }
// }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment