[SOLVED] Showing images on a different 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
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

[SOLVED] Showing images on a different drive...

Post by Todd_Z »

My server runs on the C drive, but i want to display images from the F drive... how do i do this?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

map the F-drive to a public folder, in apache this is done with alias directive
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

ah yea.... how would someone do that exactly...
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

ah from httpd.conf

Code: Select all

Alias /icons/ "F:/icons/"

<Directory "F:/icons">
    Options Indexes MultiViews
    AllowOverride None
    Order allow,deny
    Allow from all
</Directory>
User avatar
Todd_Z
Forum Regular
Posts: 708
Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan

Post by Todd_Z »

How do I use that exactly...

<img src="/AlbumArt/file.jpg"> ?

Edit -> That is the right syntax... got it to work -> Thanks guys!
Post Reply