Код: Выделить всё
if (move_uploaded_file($_FILES["mu_file"]["tmp_name"], $target_file))
{
//array_push($warning, "Uploaded to [url=\]here[/url].");
// CHECK FOR NUDITY!!!!
// CHECK FOR NUDITY!!!!
// CHECK FOR NUDITY!!!!
// CHECK FOR NUDITY!!!!
// CHECK FOR NUDITY!!!!
// CHECK FOR NUDITY!!!!
$ch = curl_init();
$mu_check_header_array = array('api-key: f26f6d9f-ed5a-4953-8ba5-dc64000246eb', 'file: '.$target_file);
curl_setopt($ch, CURLOPT_URL, "https://api.deepai.org/api/nsfw-detector");
curl_setopt($ch, CURLOPT_HTTPHEADER, $mu_check_header_array);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_VERBOSE, 1);
$result = curl_exec($ch);
curl_close($ch);
array_push($warning, "THIS IS THE OUTPUT: ". $result);
}
"{"err": "ошибка обработки входных данных из запроса"}"
Я многое попробовал и провел небольшое исследование. Наверное, я что-то глупое забыл, может кто-нибудь помочь?
Подробнее здесь: https://stackoverflow.com/questions/586 ... deepai-api
Мобильная версия