icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old January 27th, 2005, 7:41 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
index.html wont display images!

My index.html page in /public_html/ won't display images. I have an image directory folder in /public_html/ named images so I'm referencing an image using:

<img src="/images/whatever.gif">

It will load my css style sheet, which is stored in /public_html/css by simply using /css/whatever.css .

What is going on here? How can it see /css but not /images? This happened to me in the past, and I used a redirect to get around it. I don't want to use redirection anymore.

Any input is much appreciated. Thanks.

My url is: http://warebizprogramming.com
__________________
"nothing is impossible"
http://warebizprogramming.com
warebiz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 27th, 2005, 8:36 PM   #2 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Lives in N,BC,CA
8,092 posts
Gave thanks: 48
Thanked 131 times
Usually you don't use a forward slash on directories that are on the same level as the file you're using..
Try just <img src="images/whatever.gif">
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 27th, 2005, 9:42 PM   #3 (permalink)
L'Awesome Advocate
Super #1
 
Ancyru's Avatar
 
Joined in May 2004
Lives in .au
Hosted on Mango
2,423 posts
Gave thanks: 1
Thanked 5 times
Using the forward slash should be fine. Make sure you're typing the filenames correctly as they are CaSe SeNsItIve.
__________________
When I get sad, I stop being sad, and be AWESOME instead. True story.
Ancyru is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 28th, 2005, 10:43 AM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
I tried it without the forward slash. Still same. The filenames are also correct. My index.html page for my add-on domain is doing the same thing. The url is:

http://mikeware.us

Here, all web pages are correctly referenced, and I have all images in the same directory as index.html. If you can verify this by trying:

http://mikeware.us/imgMikeWareUS2.gif

It will load fine. But, in my index.html, I have:

<img src="imgMikeWareUS2.gif">

and the image won't load. This is not making any sense to me. Someone please help me out. Thanks.
__________________
"nothing is impossible"
http://warebizprogramming.com
warebiz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 28th, 2005, 11:00 AM   #5 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
that link directly to the image doesn't load for me.
http://mikeware.us/imgMikeWareUS2.gif

nor does the image of the same name load from the images directory.
http://mikeware.us/images/imgMikeWareUS2.gif

a few suggestions:
1) stick with one case for the file name - like mikeware.gif - its easier to read and maintain
2) check the permissions on that image file - verify they are set to 644
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 28th, 2005, 11:36 AM   #6 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
OK.

I took your advice and changed the image's name to: mikeware.gif

It is now stored at: http://mikeware.us/mikeware.gif

My index.html still won't recognize it, but accessing the above link does work. I also verified the permissions set at 644. Any thoughts?
__________________
"nothing is impossible"
http://warebizprogramming.com
warebiz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 28th, 2005, 11:38 AM   #7 (permalink)
sam
Surpass Fan
Super #1
 
sam's Avatar
 
Joined in Dec 2003
Lives in NJ
5,057 posts
Gave thanks: 0
Thanked 4 times
i still can't see that image if i click directly on that link.

....thinking...

ok thats weird, sometimes i see the pic of you and the squiggle writing and sometimes not.

....thinking....
sam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 28th, 2005, 11:40 AM   #8 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
Ok. I guess the link above: http://mikeware.us/mikeware.gif works every once in a while because that image is in my browser's cache. I guess I'm referencing my images wrong, but I don't know how to correct them.
__________________
"nothing is impossible"
http://warebizprogramming.com
warebiz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old January 28th, 2005, 11:41 AM   #9 (permalink)
Registered User
Fresh Surpasser
 
Joined in Dec 2003
28 posts
Gave thanks: 0
Thanked 0 times
mikeware.us is an add-on domain pointing to: /msw which is in the /public_html. Could that have something to do with it?
__________________
"nothing is impossible"
http://warebizprogramming.com
warebiz is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On