Sixem

PHP Play Random Youtube Video

Jun 7th, 2013
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. <html>
  2. <?php
  3. $yt[8] = "IoBP24I2lwA";
  4. $yt[9] = "EhPXdbjGLTc";
  5. $yt[10] = "wlAw48HucqY";
  6. $yt[11] = "uZF9_YndwqY";
  7. $yt[12] = "_zCoCa6b6cU";
  8. $yt[13] = "4GuqB1BQVr4";
  9. $yt[14] = "3mC2ixOAivA";
  10. $yt[15] = "jlrx7tswjxw";
  11. $youtube = rand(8, 15);
  12. ?>
  13. <iframe width="560" height="315" src="http://www.youtube.com/embed/<?php echo ($yt[$youtube]); ?>?autoplay=1" frameborder="0" allowfullscreen></iframe>
  14. </html>
Advertisement
Add Comment
Please, Sign In to add comment