Php script for flash thumbnail creation


SUBMITTED BY: Guest

DATE: Sept. 9, 2014, 10:03 a.m.

FORMAT: PHP

SIZE: 721 Bytes

HITS: 680

  1. <?php
  2. ?>
  3. <HTML><HEAD>
  4. <META HTTP-EQUIV="Pragma" CONTENT="no-cache">
  5. <META HTTP-EQUIV="Expires" CONTENT="-1">
  6. </HEAD><BODY>
  7. <?php
  8. $f = file_get_contents("thumb.txt");
  9. $i = 0;
  10. $output = '';
  11. $dir = scandir('../gosonicgo.com/games');
  12. foreach($dir as $file){
  13. if($file != '.' && $file != '..'){
  14. $i = $i + 1;
  15. if($i == $f){
  16. $game = '<meta http-equiv="refresh" content="0; url=http://192.168.254.15/gosonicgo.com/games/'.$file.'">';
  17. }
  18. }
  19. }
  20. $f = $f +1;
  21. $file = fopen("thumb.txt","w+");
  22. fwrite($file,$f);
  23. fclose($file);
  24. if($f >= 10375){
  25. die();
  26. }
  27. echo $game;
  28. ?>
  29. </body>
  30. </html>

comments powered by Disqus