Здравствуйте, почему этот скрипт не работает? Выдает ошибку 500.
$reg = 4373650;
for ( ; count($json_array) != 0; $reg = $reg + 5) {
$json = '';
$json = file_get_contents("https://api.vime.world/user/" . $reg);
$json_array = '';
$json_array = json_decode( $json , true );
//if (count($json_array) = 0) break;
}
for ( ; count($json_array) = 0; $reg = $reg - 1) {
$json = '';
$json = file_get_contents("https://api.vime.world/user/" . $reg);
$json_array = '';
$json_array = json_decode( $json , true );
//if (count($json_array) = 1) break;
}
echo $reg;