Jump to content

[SOLVED] Make links to swf


Dodekus

Recommended Posts

here hope this helps :)

 

<?php

$dh =@ opendir($directory);
if ($dh) {
    while ($file = readdir($dh)) {
        if ($file != "." && $file != "..") {
            $fileInfo = pathinfo($directory . DIRECTORY_SEPARATOR . $file);
            if ($fileInfo["extension"] === "swf") {
               echo "<a href='" . $httpPathToDirectory . "/" . $file . "'>" . $file . "</a><br />\n";
            }
        }
    }
}

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.