Forum Moderators: coopster

Message Too Old, No Replies

How to link/map other folder/disk outside the webroot in Xp

Map a folder from other drive to webroot

         

anothernick

6:01 am on Apr 6, 2007 (gmt 0)

10+ Year Member



Hello,

Itīs my first time in forums and iīve liked very much this one.
I see good answers here!
Iīve installed last version of WAMP with Apache, Mysql, PhpMydmin and Php on windows Xp.
Everything is working fine, but i donīt know how to map some folder from other disk to the webroot.
I will try to describe the details of my problem:

Instalation folder of webroot:
C:\wamp\www\

The virtual host i use:
c:\wamp\www\site\

The folder i want to map is in:
g:\outro\

This g:\outro\ has some mp3 files i want to use/map into my webroot.
I would like to know which script i can use to link them to my webroot.
Iīm using a mp3 player ( Flam player) with has mysql connection that works fine, but i need to copy the mp3 files to the the webroot...

If itīs needed i can copy/paste my php or mysql file to here.

Thank you in advance

phparion

2:28 pm on Apr 6, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



welcome to WebmasterWorld.

do not copy mp3 files to www because you don't need to..

do not move php files to mp3 files location otherwise they will not be executed as php files with localhost reference any more

yes.. link it.. you can easily do it with Absolute Path e.g

<a href='G:\mp3\shakira\hips_dont_tell_alie.mp3'>Click To Download</a>

but remember this is the worse way to give downloads links but just wanted to show you an example...

anothernick

2:17 am on Apr 7, 2007 (gmt 0)

10+ Year Member



welcome to WebmasterWorld.
do not copy mp3 files to www because you don't need to..

do not move php files to mp3 files location otherwise they will not be executed as php files with localhost reference any more

yes.. link it.. you can easily do it with Absolute Path e.g

<a href='G:\mp3\shakira\hips_dont_tell_alie.mp3'>Click To Download</a>

but remember this is the worse way to give downloads links but just wanted to show you an example...

Hello,
Thank you for the replie, but maybe i didnīt explain myself well.

I donīt want a link to users download mp3 files. I want a link to allow users browse a folder outside the root.
I need some script that will allow php to let users see whatīs in g:

I want to use a audio script that allow users to browse a folder of m3īs outside the webroot:

Actual working solution:
c:\wamp\www\site\ <-where the audio player script is located
c:\wamp\www\site\*.mp3 <-where mp3īs files are, to be seen by the script

Help:
g:\mp3\folder_a\*.mp3 <-the folders i want to be linked to webroot
g:\mp3\folder_b\*.mp3 <-the folders i want to be linked to webroot
g:\mp3\folder_c\*.mp3 <-the folders i want to be linked to webroot

Or if you know any multimedia script that has this solution, please tell me.

Thank you again.

phparion

5:39 am on Apr 7, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



just to suggest you .. your basic concepts of php programming are not sound.. so you should learn php properly along with html because to complete a project shouldn't be the only goal but to learn and understand how you do things...

anyway, get a ready made solution to browse directories here [dirfile.com...] .. there are many .. Google is your friend :)