Page 1 of 1

Path or link

Posted: Fri Aug 18, 2006 10:18 pm
by Gluyk
getid3 v 1.7.7

in mysql filename = /home/teen4ev2/public_html/slaed/modules/Audio/mp3/04 Cast It Out.mp3

buy site http://teen4ever.ru

how get link?

Sorri with my English :oops:
Speek Russian :oops:

Posted: Sat Aug 19, 2006 1:19 am
by James Heinrich

Code: Select all

//$_SERVER['DOCUMENT_ROOT']  == "/home/teen4ev2/public_html'
$mysql_filename = '/home/teen4ev2/public_html/slaed/modules/Audio/mp3/04 Cast It Out.mp3';
$link_filename = str_replace($_SERVER['DOCUMENT_ROOT'], '', $mysql_filename);
// $link_filename == "/slaed/modules/Audio/mp3/04 Cast It Out.mp3";
echo '<a href="'.urlencode($link_filename).'">download</a>';

Posted: Sat Aug 19, 2006 2:59 pm
by Gluyk
Big Thanks!!!
I love getid3!!! :) :D
thn, thn, thn

Вообщем большое спасибо!!!