Directory Help Please |
Directory Help Please |
![]()
Post
#1
|
|
![]() Marynmissouri ![]() ![]() ![]() Group: Member Posts: 41 Joined: Jan 2008 Member No: 606,116 ![]() |
OK, so I still have the issue of not getting my images uploaded for some reason. I can get my webpage uploaded without the images and I have been working on this off and on for a few months now. I have switched my hosting as I had banners running at the top of my page through godaddy. *Not dissing godaddy*
I downleded this website and it's images and I go to upload into the directory and I dont ge my images? I right click and see the directory so I go and add more to my directory. Would someone please tell me what I'm doing wrong? I use Filezilla. Here is a preview: Directory: mysite.com ADD: images So I have this directory: httpdocs://mysite//images So it looks like this when I type it in: http://www.mysite.com/my-web Visually there is no images just red x's where the images go. When I right click on the images it says: http://www.mysite.com/my-web/images/menue 1h gif So my main directory is: mysite (all lowercase) EXAMPLE: httpdocs//mysite and then I add: images (into the directory) EXAMPLE: httpdocs//mysite//images If anyone has any suggestions I'm willing to listen. Oh, does it matter were I download all of my work that I do on my pages? And as far as Database... Do I need to create a database that says: mysite_images and when I add more just add more to the datdtbase? I'm terribly confused at this point I been reading Too Much! Will this effect my files? Thank You Mary |
|
|
![]() |
![]()
Post
#2
|
|
Senior Member ![]() ![]() ![]() ![]() ![]() ![]() Group: Member Posts: 1,237 Joined: May 2008 Member No: 648,123 ![]() |
if i had to guess, i'd say it's because you're calling images in relation to the directory you're looking at in your browser.
i'm assuming your image codes look like this: CODE <img src="images/imagename.gif" /> the problem with that is browsers will read it as if the full address of the page you're on (without the file name) is to be added to the beginning of the image source. to fix it, you need to tell browsers than you want the "images/" folder to be gathered from your main directory: CODE <img src="/images/imagename.gif" /> the first slash tells browsers that no matter how deep you are into your site (www.mysite.com/my-web/directory/directory/), it will always call the images folder from the root directory. as for databases, it depends on what you're trying to do. you shouldn't need a database for images, because you can't store images in a database; they need to be on your web server. |
|
|
![]() ![]() |