Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1.-) ABRE BLOC DE NOTAS.
- 2.-) COPIA Y PEGA EL CODIGO PHP.
- 3.-) ARCHIVO -> GUARDAR COMO -> Y LO GUARDAS POR EJEMPLO "avatar.php".
- 4.-)SUBELO A TÚ SITIO WEB DÓNDE PERMITA CODIGOS PHP.
- 5.-) CUÁNDO LO TENGAS SUBIDO SÓLO DEBES PONER: TUWEB.COM/avatar.php?id=NOMBRE DEL CANAL DE YOUTUBE
- 6.-) EJEMPLO: -> TUWEB.COM/avatar.php?usuario=irokehabbo
- EL CODIGO MOSTRARA EL AVATAR DEL CANAL
- <?php
- error_reporting(0);
- $usuario = $_GET['usuario'];
- $page= file_get_contents("https://youtube.com/user/$usuario");
- $avatar1 = explode ("https://yt3.ggpht.com", $page);
- $avatar2 = explode ('"', $avatar1[1]);
- echo "https://yt3.ggpht.com$avatar2[0]";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement