How to enable absolute path?

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

How to enable absolute path?

Postby Cyrus » 03. March 2006 19:15

I just installed XAMPP to test my site offline. But, I just noticed that absolute path is not working.

Example : I want to call a spacer.gif from the images folder, so the path would be "/images/spacer.gif" but its not working. However, using relative path "images/spacer.gif" works...

I would like to know is there anyway to enable the absolute path?
Cyrus
 
Posts: 3
Joined: 03. March 2006 16:28

Postby Dave_L » 03. March 2006 23:47

What's the full file system path for spacer.gif, and how exactly are you referencing it in HTML?
User avatar
Dave_L
 
Posts: 212
Joined: 23. October 2004 00:43

Postby Cyrus » 04. March 2006 02:16

The full system path would be D:\Program Files\xampp\htdocs\images\spacer.gif and I'm referring it using <img src="/images/spacer.gif" />
Cyrus
 
Posts: 3
Joined: 03. March 2006 16:28

Postby tjthedj » 04. March 2006 05:57

it should already be enabled it works fine on my system when i do that.

on my machine that image with /images/spacer.gif
would draw from here
http://localhost/images/spacer.gif

o, i think i know the problem,

r u typing localhost in the browser address bar or are u just opening the page by doouble clicking the page in the htdocs folder?
check your ip address with my new site IP BIRD
----------
great webmaster forums here
tjthedj
 
Posts: 41
Joined: 29. January 2006 20:40
Location: Texas, USA

Postby Cyrus » 05. March 2006 14:08

Problem solved...

It seems that I forgot to setup a virtualhost to call the file..

Thanks for the help anyway :)
Cyrus
 
Posts: 3
Joined: 03. March 2006 16:28


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 126 guests