fork download
  1. <?php
  2.  
  3. $vatsim_status = file_get_contents( "http://s...content-available-to-author-only...m.net/status.txt" );
  4. $vatsim_status = explode( PHP_EOL, $vatsim_status );
  5.  
  6. $vatsim_url0s = array();
  7.  
  8. foreach( $vatsim_status as $key=>$line ){
  9.  
  10. if( $line[ 0 ] == ";" ){ unset( $vatsim_status[ $key ] ); }
  11. if( substr( $line, 0, 4 ) == "url0=" ){ array_push( $vatsim_url0s, explode( "=", $line ) ); }
  12.  
  13. }
  14.  
  15. echo array_rand( $vatsim_url0s );
Success #stdin #stdout #stderr 0s 87104KB
stdin
Standard input is empty
stdout
Standard output is empty
stderr
PHP Warning:  file_get_contents(): php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/IoxwrX/prog.php on line 3
PHP Warning:  file_get_contents(http://s...content-available-to-author-only...m.net/status.txt): failed to open stream: php_network_getaddresses: getaddrinfo failed: Temporary failure in name resolution in /home/IoxwrX/prog.php on line 3
PHP Notice:  Uninitialized string offset: 0 in /home/IoxwrX/prog.php on line 10
PHP Warning:  array_rand(): Array is empty in /home/IoxwrX/prog.php on line 15