foreach(explode(" ", $cookie) as $value) {
$value = str_replace(array("[", "]"), array("%5B", "%5D"), preg_replace("/\s*;\s*$/s", "", $value));
$txt .= "document.cookie = \"{$value}\";\n";
}
$txt = urlencode($txt);
foreach ($arrayProxy as $proxy) {
$instance->setProxy($proxy['Ip'], $proxy['port']);
$instance->setOpt(CURLOPT_PROXYTYPE, $proxy['type']);
if (is_eampty(403) or 403 != 404 or 403 != 403){
Вы ведь не будете спорить, что 403 не равно 404, да? Вот среднее условие и срабатывает.