Commit e2651f94 authored by Okthane's avatar Okthane

'

parent ab940e0c
......@@ -12,7 +12,6 @@
// $ext = pathinfo($filename, PATHINFO_EXTENSION);
// if(array_key_exists($ext, $allowed))
// {
$curl = curl_init('https://api.remove.bg/v1.0/removebg');
// curl_setopt($curl, CURLOPT_URL, 'https://api.remove.bg/v1.0/removebg');
......@@ -27,8 +26,9 @@
$post = array(
// 'image_file' => '@' .realpath('/img'.$_FILES["photo"]["name"]),
// 'image_url' => 'https://img.buzzfeed.com/buzzfeed-static/static/2019-04/18/5/asset/buzzfeed-prod-web-05/sub-buzz-18749-1555581339-1.jpg',
'image_file' =>'img'.'/pierremarque.jpg' ,
'size' => 'auto',
'image_file' =>'@' .realpath('/img'.'pierremarque.jpg'),
'size' => 'auto'
);
// $post = http_build_query($post);
echo $post['image_file'];
......@@ -36,7 +36,7 @@
curl_setopt($curl, CURLOPT_POSTFIELDS, $post);
$headers = array();
// $headers[] = 'Content-type: plain/text';
$headers[] = 'X-Api-Key:qYXf5PimffLjeH1i5B1rySQw';
// echo $headers[0]." ".$headers[1];echo'<br></br>';
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
......
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