View Single Post
Old 09-17-2003, 07:12 PM   #1 (permalink)
Mr.Anderson
Registered User
 
Mr.Anderson's Avatar
 
Join Date: Mar 2003
Location: In a van, down by the river.
Posts: 24
Mr.Anderson is on a distinguished road
Send a message via AIM to Mr.Anderson Send a message via Yahoo to Mr.Anderson
Unhappy Relative paths -- I need help and I'm out of ideas.

I've been trying to echo back an IMG SRC="yadda yadda",
but I have this problem where I have to define an exact path
for the image. I don't know why, but ...
PHP Code:
echo "<body bgcolor=\"#FFFFFF\" background=\"../images/lines11.gif\" link=\"#FFFFFF\" vlink=\"#999999\">\n";
 
// This one works, and it's using a relative path!?
echo "<img src=\"E:\Joe\appServ\www\images\banner.gif\"><br>\n";
 
// This one works, but it's an absolute path.
echo "<img src=\"../images/banner.gif\"><br>\n";
 
// This does not work.
echo "<img src=\"http://localhost/images/banner.gif\"><br>\n";
 
// Nor does this does not work. 
I'm really not sure what the problem is.
( Short of user error. )

Any ideas?

EDIT: Nevermind, I found the problem. I needed to allow inherited permissions on the files since I changed my account type a few days ago. It's working perfectly now.
Mr.Anderson is offline   Reply With Quote