Image absolute url

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Image absolute url

Postby wutanggrenade » 29. August 2010 03:12

I'm trying to see if this will work.

Retrieving picture outside of the htdocs folder with absolute urls. For instance how can I do something like this.

<img src="c:/example/example.gif" alt="example.gif"/>

Using a directory scan, I can easily scan an entire drive, but how can I retrieve the pictures?
wutanggrenade
 
Posts: 4
Joined: 29. August 2010 03:07

Re: Image absolute url

Postby JonB » 29. August 2010 14:25

AFAIK, you can't using Apache, As all Apache can serve is URL's, they have to be in the scope of the server (the DocumentRoot) OR on some other resolvable resource.

Yous should also look at your post title, and realize/understand what a URL is.
http://en.wikipedia.org/wiki/Uniform_Resource_Locator

What your post title inplies is absolute vs. relative URL's not filesystem locations,

Take a minute and try thinking this through - would you want people to be able to scan your machine if you made a minor error in your configuration settings?

Good Luck
8)


ycf
User avatar
JonB
AF Moderator
 
Posts: 3210
Joined: 12. April 2010 16:41
Location: Land of the Blazing Sun
Operating System: Windows XP/7 - Fedora 15 1.7.7

Re: Image absolute url

Postby sbarrow47 » 08. September 2010 01:18

The pictures have to be accessible via url.
Think about it, if someone visits your site, they won't have that image on their c: drive.
sbarrow47
 
Posts: 3
Joined: 08. September 2010 01:13

Re: Image absolute url

Postby wutanggrenade » 15. September 2010 01:21

It was for offline use for me. I know some people wouldn't figure it out that images can't be loaded off your harddrive, but I just wanted to get it to be able to be able to scan my hd and load the images.
wutanggrenade
 
Posts: 4
Joined: 29. August 2010 03:07


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 65 guests