всем привет
помогите пожалуйста:lol у меня например есть 10 питомцев и их нужно кормит через file_get_contents. Вот парсер ид'а
$ref = 'http://galaxy.mobstudio.ru/services/index.php?userID=37037945&password=*****2&a=pets_menu&usercur=37037945&&kbv=127&lngg=ru&dbl=5';
$file_content = file_get_contents($ref);
preg_match_all('~&petid=(\d{1,12})~',$file_content,$good_id);
if (!empty($good_id[1]))
{
foreach ($good_id[1] as $thing)
{
echo 'Ид Всех питомцев:'. $thing .'</a><br/>';
ob_start($good_id);
}
}Этот парсит ид питомцев.