PDA

View Full Version : Image directory problem


gary
01-31-2000, 08:58 PM
Hello,

I am having a problem having my images (jpg's) come up when I access the site.
I have them pointed at big/dom/xmydomain/www/XXXX.jpg
and still those boxes come up in their place.

What would I be missing?

Thanks,
Gary

elite
01-31-2000, 09:09 PM
Can you provide us with a page a link to where this is occuring?

-Brian

gary
01-31-2000, 09:11 PM
area51comm.com would be the address

Thanks,
Gary

Bradley
01-31-2000, 09:21 PM
Howdy!
Don't point them to /big/dom/xdomain/images/blah.. point them to domainname.tld/images/blah.blah for example ganon.net/images/server.jpg
------------------
Bradley Noe
www.ganon.net (http://www.ganon.net)
"The legend lives on from the Chippewa on down of the big lake they call Gitchie Gumee"

Shalazar
01-31-2000, 09:27 PM
Your problem is a simple one, you're using the wrong directory structure to call your images.

Your code is:

<IMG SRC=&quot;/big/dom/xarea51comm/www/area51logo.JPG&quot;>
<IMG SRC=&quot;big/dom/xarea51comm/comingsoon.JPG&quot; ALIGN=MIDDLE>


The syntax you are using, big/dom/xurl/dir/dir is correct for cgi scripts, ftp, etc., but not for your html and its formatting.

To properly call your image, you can use either of the following syntaxes:

1) Full Path

<img src=&quot;http://www.area51comm.com/dir/to/image.jpg&quot;>

For example, if your images are in your root directory(www), then your call would look like:

<img src=&quot;http://www.area51comm.com/image.jpg&quot;>

If your image is in a directory other than your root directory, say /Images (www/Images), then it looks something like:

<img src=&quot;http://www.area51comm.com/Images/image.jpg&quot;>

2) Or you can use relative paths to call your images.[nbsp][nbsp]In this case, you refer to the image in a manner relative to your root directory (www), without having to use all the http:// stuff ahead of it.

Again, if your image.jpg is in your main root directory (www), then a relative image call looks like:

<img src=&quot;image.jpg&quot;>

If your image.jpg is in another directory, lets say /Images, then a relative call looks like:

<img src=&quot;Images/image.jpg&quot;>

I hope that helps, and best of luck to you.

gary
01-31-2000, 09:41 PM
Thanks everyone but it's still not working.
I changed the code to all of your suggestions, still have those little boxes.

I know the jpgs are good, I had the site up last night...today nothing.

Strange stuff.

GAry

Bradley
01-31-2000, 09:44 PM
Where are your images? in the images dir on in the main dir? They are pointing to the main dir.. if they are in the images idr they need to point to www.domain.tld/images/comingsoon.jpg (http://www.domain.tld/images/comingsoon.jpg) for example
------------------
Bradley Noe
www.ganon.net (http://www.ganon.net)
&quot;The legend lives on from the Chippewa on down of the big lake they call Gitchie Gumee&quot;

gary
01-31-2000, 09:46 PM
The images are in the www directory, which is the main directory (root) correct? I beleive thats the way it is.

Shalazar
01-31-2000, 11:18 PM
Your problem is case-sensitive.

UNIX and related environments are case-sensitive, which means they view lower case and upper case letters differently, and your file names have a mixture of both.

Use the following, as I have successfully accessed your images:


<img src=&quot;Area51logo.JPG&quot;>
<img src=&quot;Comingsoon.JPG&quot;>


OR


<img src=&quot;http://www.area51comm.com/Area51logo.JPG&quot;>
<img src=&quot;http://www.area51comm.com/Comingsoon.JPG&quot;>

pridetech
01-31-2000, 11:24 PM
Hi gary,

UNIX filenames are case sensitive. Area51logo.JPG is not same as area51logo.jpg. I noticed that http://www.area51comm.com/Area51logo.JPG loads fine. You have linked it as &quot;http://www.area51comm.com/area51logo.jpg&quot; in your html.

Regards

<edit>
Oops! Shalazar, your last post was not around when I clicked reply :)
</edit>

------------------
http://www.freesoftware.org
[This message has been edited by pridetech (edited 01-31-00@11:35 pm)]

gary
02-01-2000, 09:32 AM
Thanks for all your help, I will try your suggestions and let you know if they work.

regards,
Gary