Displaying images from another hard drive on server

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
mouse0270
Forum Newbie
Posts: 2
Joined: Tue May 05, 2009 12:45 pm

Displaying images from another hard drive on server

Post by mouse0270 »

I have added a 1TB hard drive to my local server. My family is supposed to use it to upload photos and view them. My only problem is Firefox and safari doesn't seem to want to display photos from this new hard drive? works fine in IE...but I need it to work i all three..
nwhiting
Forum Newbie
Posts: 18
Joined: Sun May 03, 2009 8:30 pm

Re: Displaying images from another hard drive on server

Post by nwhiting »

To get this working you need to setup another server to run on that hardrive ( a virtual host will work ) and connect to them.
Just like a server information stored on another harddrive depending on what operating system your running wont be accessible via direct file requests.

For example

Code: Select all

 
<img src="http://localhost/1TB/imagePath/image.jpg" />
 
mouse0270
Forum Newbie
Posts: 2
Joined: Tue May 05, 2009 12:45 pm

Re: Displaying images from another hard drive on server

Post by mouse0270 »

could you explain to me how to setup a virtual host, or point me in the direction I need to be. I am using the latest version of Apache and PHP...
Post Reply