Skip to content

Instantly share code, notes, and snippets.

@bogutski
Forked from xboston/phalcon-ru-image.php
Created August 19, 2016 17:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bogutski/47640c1ad0546d7e89a0b0b47c2815f8 to your computer and use it in GitHub Desktop.
Save bogutski/47640c1ad0546d7e89a0b0b47c2815f8 to your computer and use it in GitHub Desktop.
Фоточки человеков из https://vk.com/phalconphp
<div style="text-align: center">
<?php
// 45934290 - ID группы
$d = file_get_contents("https://api.vk.com/method/groups.getMembers?group_id=45934290&v=5.16&offset=0&count=1000&fields=photo_50");
$us= json_decode($d,true);
foreach($us['response']['items'] as $u){
echo sprintf('<img src="%s"/>',$u['photo_50']);
}
?>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment