Help! how to put index.html in a directory with the correct file size?

I am trying to put my updated index.html into my directory folder.<br />
<br />
I uploaded the new file via bulletproof ftp, am I correct that I should be able to overwrite the old index.html?<br />
<br />
OK, But what happened was - when I upload, no overwrite box came up but its arrived in the directory anyway but the file size is 0 which was supposed to be 40kb.<br />
<br />
And also I cannot find the old index.html file in there, which means I'd deleted it by mistake.<br />
<br />
Please tell me the correct way to upload my new index.html with its correct file size?<br />
<br />
And put them in the correct directory <br />
<br />
Thanks for your time in advance<!--content-->how to upload depends on your host i suggest you look in the help files of you hosts site, the old index may have been .htm not .html<!--content-->Maybe a bug with your FTP program??<br />
<br />
Make sure there isn't index.html and index.htm in the folder.<br />
<br />
Try uploading it via command-line FTP.<br />
<br />
1. Start > Run. Type in cmd (Win2k and XP) or command (any previous version of Windows).<br />
<br />
2. You'll see something like: c:\windows\desktop> (Win 95 - Win ME) or c:\Documents and Settings\username> (Win 2k and XP)<br />
<br />
Use the cd.. command to back out of a folder. Use cd <foldername> to move into a folder. You'll want the current working directory to be the same folder in your computer that you have the index.html file stored in.<br />
<br />
Note on Win9x and ME: You may have to type the first 6 letters of the foldername followed by a "~1" to move into folders with names that have more than 8 characters. EX: cd docume~1 to move into a folder called "Documents and Settings." This problem does not occur if you can use cmd for the command prompt.<br />
<br />
3. Type: ftp and hit Enter.<br />
<br />
4. Type: open <IP address> or <domain_name> and hit enter. This is the FTP address you would put into a WYSIWYG FTP program.<br />
<br />
5. It should prompt you for a username. Enter it. Some servers require you to type user username.<br />
<br />
6. Enter the password when prompted. You may need to type pass password.<br />
<br />
7. Use cd <foldername> to move into a folder. Use ls to get a listing of the contents of a folder. Move into the folder you want to upload the index.html file to.<br />
<br />
8. Type: put index.html and hit enter.<br />
<br />
9. Once the file has been transferred, type ls -l and hit enter (if it is a unix server) and it will give you a list of the files, their permissions and file sizes.<br />
<br />
Once you are done, type bye to close the ftp connection and exit the ftp program. You'll be back to the DOS command prompt. Type exit to close the prompt.<!--content-->
 
Back
Top