Computing.Net > Forums > Web Development > Link to files outside Apache on PC

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Link to files outside Apache on PC

Reply to Message Icon

Name: dweller
Date: September 5, 2007 at 22:54:14 Pacific
OS: Windowx XP
CPU/Ram: Intel Processor / 1GB RAM
Product: Dell
Comment:

I have WAMP set up on my personal PC. What I am trying to do is on the Apache server have a website that is built with PHP and a MySQL database to have an interactive website that has a bunch of links to video files. The problem is that I want to link to files on my PC that are outside of Apache and on a different drive. (Apache is installed on my C drive and all of the videos I'm trying to link to are on the F drive.) I want to be able to click the links on the webpage and have the videos open in a video player on my computer. If this is not possible I would move the Apache directory to my F drive to have all my videos within Apache. I tried this before but whenever I clicked a link to open in a video player the video would "download" (copy itself) into a temp folder before opening in a video player. I would want the video files just to open with a video player instantly.



Sponsored Link
Ads by Google

Response Number 1
Name: Laler
Date: September 6, 2007 at 06:42:37 Pacific
Reply:

2 issues here:

- How to link to files outside the webserver
- How to stream

The first can be solved by using "aliases" which in the basic form it goes like this:

Alias /tester "F:/music/"
<Directory "F:/music/">
Options Indexes Includes
AllowOverride All
Order allow,deny
Allow from all
</Directory>


in your httpd.conf

Edit: don't forget to restart the server

Now, typing http://localhost/tester will open the content of F:\music\

Search for "Alias" in httpd.conf and there might be other aliases set by WAMP, which you can use as a "template"

Or you can of course (as you've done) move the music files into the webserver.

--

Streaming is a little bit more. You need to use some server-side scripting to:

- grab the music file
- stream it out to the browser

By default, Internet Explorer will open any windows media player readeable files in the windows media player.

What's your browser? And your "video player"?

If you're really going to do a real "streaming", then look at these links for a start:
http://www.computing.net/webdevel/w...
http://ils.unc.edu/~koyam/video/how...

---
Fubar


0

Response Number 2
Name: dweller
Date: September 6, 2007 at 07:16:47 Pacific
Reply:

Thanks for the quick response, Fubar. I've been using Firefox as a primary browser. For most of my video files I've been using VLC, but I also have files that need to use RealPlayer, Windows Media Player, QuickTime, and a program called Zoom Player.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Link to files outside Apache on PC

HTML link to a file in the users PC www.computing.net/answers/webdevel/html-link-to-a-file-in-the-users-pc/2942.html

Link my files on my web server ? www.computing.net/answers/webdevel/link-my-files-on-my-web-server-/2543.html

Linking to Files/Documents www.computing.net/answers/webdevel/linking-to-filesdocuments/3166.html