// создаем массив proxy которые заранее известны нам, они левые
$proxy = array(
'0' => array("Ip" => '123.456.789.0', "Port" => '777'),
'1' => array("Ip" => '1.456.789.0', "Port" => '55'),
'2' => array("Ip" => '2.456.789.0', "Port" => '57')
);
call to "123.456.789.0" and "CURLPROXY_HTTP" was unsuccessful.
instance ID: 0
error message: Couldn't resolve proxy name: Could not resolve proxy: 2.456.789.0
call to "1.456.789.0" and "CURLPROXY_HTTP" was unsuccessful.
instance ID: 1
error message: Couldn't resolve proxy name: Could not resolve proxy: 2.456.789.0
call to "2.456.789.0" and "CURLPROXY_HTTP" was unsuccessful.
instance ID 2
error message: Couldn't resolve proxy name: Could not resolve proxy: 2.456.789.0
call to "159.89.191.89" and "CURLPROXY_HTTP" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
call to "159.89.191.89" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
$multi_curl->error(function($instance) use (&$arrayUnSuccess) {
echo 'call to "' . $instance->myTag["Ip"] . '" and "' . $instance->myTag["type"] . '" was unsuccessful.' . "<br>";
echo 'error code: ' . $instance->errorCode . "<br>";
echo 'error message: ' . $instance->errorMessage . "<br>";
});
call to "159.89.191.89" and "CURLPROXY_SOCKS5" was unsuccessful.
error code: 7
error message: Couldn't connect to server: Failed to connect to 159.89.49.217 port 8080: Connection refused
foreach ($arrayProxy as $proxy) {
$instance = $multi_curl->addGet('https://ya.org');
$proxy['type'] = $type;
$instance->myTag = $proxy;
}
is_file вернуло:
echo 'ok, fine, thats really is file...';
is_writable вернуло:
echo 'ok, fine, i have rights to this file...';
Файл как был на месте, так и остается.