Path or link

The place for "I can't figure out how to..." questions.
Post Reply
Gluyk
User
Posts: 6
Joined: Fri Aug 18, 2006 10:11 pm
Contact:

Path or link

Post by Gluyk » Fri Aug 18, 2006 10:18 pm

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:

James Heinrich
getID3() v1 developer
Posts: 1476
Joined: Fri May 04, 2001 4:00 pm
Are you a spambot?: no
Location: Northern Ontario, Canada
Contact:

Post by James Heinrich » Sat Aug 19, 2006 1:19 am

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>';

Gluyk
User
Posts: 6
Joined: Fri Aug 18, 2006 10:11 pm
Contact:

Post by Gluyk » Sat Aug 19, 2006 2:59 pm

Big Thanks!!!
I love getid3!!! :) :D
thn, thn, thn

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

Post Reply