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
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Sun Jan 23, 2005 4:27 pm
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 » Sun Jan 23, 2005 4:34 pm
map the F-drive to a public folder, in apache this is done with alias directive
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Sun Jan 23, 2005 4:42 pm
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 » Sun Jan 23, 2005 4:48 pm
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>
Todd_Z
Forum Regular
Posts: 708 Joined: Thu Nov 25, 2004 9:53 pm
Location: U Michigan
Post
by Todd_Z » Sun Jan 23, 2005 4:55 pm
How do I use that exactly...
<img src="/AlbumArt/file.jpg"> ?
Edit -> That is the right syntax... got it to work -> Thanks guys!