viewing paste Remote Dir Listing Exampl | PHP

Posted on the
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
<?
$matches = array();
preg_match_all("/(a href\=\")([^\?\"]*)(\")/i", get_text('http://mirror.eftel.com/debian/doc/'), $matches);
foreach($matches[2] as $match)
{
    echo $match . '<br>';
}
 
function get_text($filename)
{
    $fp_load = fopen("$filename", "rb");
    if ( $fp_load )
    {
        while ( !feof($fp_load) )
        {
            $content .= fgets($fp_load, 8192);
        }
        fclose($fp_load);
        return $content;
    }
}
?>
Viewed 1533 times, submitted by Akkarin.