Web Hosting Talk







View Full Version : need some help to find a direct link at a php code


zbv2net
12-02-2009, 04:05 PM
Hello i need some help

how can i find the direct link of a file explorer

there is a code to get the files listed by a script u can find the script here i jussst need the code like this


This to be the direct file of the Mp3 Files that i will upload on ftp and than the php code to get me the direct link to it

thank you

<?php somecdeo ?>


Here is the script demo

http://encode-explorer.siineiolekala.net/explorer/index.php


and here you can downlaod
it


http://sourceforge.net/project/showfiles.php?group_id=172611



And i think this is the code that gets the file to be listed



but i dont want to see it printed but i want to use that code in a flv player

so wen ill put player.swf?file=<?php somecde ?> the plaeyr to play the mp3 file i hope i am clear sorry for my english if i missed smthn


<?php
print "\t\t<a href=\"".$this->location->getDir(false, true, 0).$file->getName()."\"";
if($_CONFIG['open_in_new_window'])
print "target=\"_blank\"";
print ">".$file->getName()."</a>";
?>

mattle
12-02-2009, 05:15 PM
I think you just need to preface the href with the path to your SWF player...


print "\t\t<a href=\"/path/to/player.swf?file=" . $this->location-> // and so on