Computing.Net > Forums > Web Development > What folder do you put images in?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

What folder do you put images in?

Reply to Message Icon

Name: fallenint
Date: June 30, 2004 at 11:27:53 Pacific
OS: n/a
CPU/Ram: n/a
Comment:

Hi, this is for a friend, I'm not into web development myself. He is creating a personal homepage, he is using microsoft frontpage to make all the pages then manualy uploading them via ftp. Untill yesterday his page was just text untill he put an image for a link, he uploaded the image to his ftp putting it in the htdocs file then when he went to check he got "a white box with a little x" he needs to know if you have to create a file to put images in if so what should it be called and where should he make it? Also because he is using frontpage he said the image was located in my documents and that when he goes on it he thinks its trying to get it from my documents.. I really dont understand what most of this means! Anyway he will appreciate anyhelp, thanks.



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: June 30, 2004 at 12:44:32 Pacific
Reply:

Sounds like what he did was when building the page in FP, he linked to an image that is sitting in My Documents, thus FP remembered the location of the image as in My Documents. But when he FTPed to the webserver, the webpage still looks for the image in My Documents, which doesn't exist.


What he needs to do is move the image into the same folder with the web page, then link to the new copy of the image that he copied into the webpage folder.



0

Response Number 2
Name: fallenint
Date: June 30, 2004 at 12:53:36 Pacific
Reply:

He has tried to change the link but doesnt know what to, he put the link first as the ftp address then he put the poicture on the ftp and tryed linking to the image on a seperate page but neither seemd to work, what shoud he be linking to? for example if his website is www.something.com should he link to www.something.com/mypicture or ftp.something.com/htdocs/my picture? Thanks for help


0

Response Number 3
Name: Jamie_McCoy
Date: June 30, 2004 at 17:24:29 Pacific
Reply:

say this is his img code

this means that the image must be placed in the same directory as his webpage

if the code is

that means in the directory where his webpage is should be a folder called images. in that folder called images should be a file called image3.jpg

if the image is in a previous directory than the webpage, then the img code would be

../ means move backwards 1 from the directory you are in now

if you need more help email me

Jaymc.co.nr


0

Response Number 4
Name: Jamie_McCoy
Date: June 30, 2004 at 17:27:15 Pacific
Reply:

ok i bloody hate the way this forum kills you code

img src="image3.jpg" (image is in same directory

img src="images/image3.jpg" (image is in a folder called images)

img src="../image3.jpg" (image is in the directory emediatly before htdocs

Jaymc.co.nr


0

Response Number 5
Name: fallenint
Date: July 1, 2004 at 04:08:22 Pacific
Reply:

Thanks alot Jamie, he seems to understand that.. I have no idea what it means!


0

Related Posts

See More



Response Number 6
Name: Jamie_McCoy
Date: July 1, 2004 at 11:34:41 Pacific
Reply:

so is that ok then or do you still need help...


Jaymc.co.nr


0

Response Number 7
Name: fallenint
Date: July 1, 2004 at 15:35:01 Pacific
Reply:

He's done it.. Just checked his website and he's got the pic up, thanks for that.


0

Response Number 8
Name: thepineapplehead
Date: July 2, 2004 at 14:09:59 Pacific
Reply:

Just to clarify, the images can be in whatever folder you want them to be, just as long as the html code points to the right thing.

What the problem was was direct linking - the html code linked to the original image on the hard drive.

What you should have is something similar to this:

If the html page is in a subfolder (eg blah.com/html/page.html and the image is in blah.com/img/img.gif you need

img src="../img/img.gif

If the html is at blah.com/page.html and the img is in an img folder you need

img src="img/img.gif"

etc.


Poor Stevie. They never did find his head.


0

Response Number 9
Name: Terri Kaduck
Date: July 2, 2004 at 17:51:56 Pacific
Reply:

Some may put me down because I use the "user friendly" FP program but maybe here I can actually help someone.
I do know for a fact that you cannot mix the standard FTP programs and Front Page. It works on a system all it's own. If you made the page in FP then you must also publish it via FP.
Uploading a FP website via an FTP program locks a file in the FPT folder and then you can't do anything with anything at all. Once this happens alls that's left is to access the FTP site and delete all the files associated with the 2 programs and start over because once this file is locked it cannot be unlocked. I found this out from the microsoft front page website. Don't know if this will help your friend or not but figured it might.


0

Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: What folder do you put images in?

error in html document / .html uplo www.computing.net/answers/webdevel/error-in-html-document-html-uplo/499.html

What do you think of my best friend website? www.computing.net/answers/webdevel/what-do-you-think-of-my-best-friend-website/4127.html

how to save website user's images www.computing.net/answers/webdevel/how-to-save-website-users-images/1645.html