Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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.

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.

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

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

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

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.

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.

![]() |
![]() |
![]() |

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