Executing file of another drive

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
pcoder
Forum Contributor
Posts: 230
Joined: Fri Nov 03, 2006 5:19 am

Executing file of another drive

Post by pcoder »

Hi,
I am using WAMP Server. I have installed it on my local C drive.
I have to play the footage located on D drive from the browser.

I tried it with file:///D:/test.mpg on a link. But it is not working.
Is is possible?
If possible, please let me know...
Thanks
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

You're going to need a script which refers to these files for you, unless you tweak the configuration of the server to serve content from the directory directly.

Look into readfile().
Post Reply