View Full Version : saving website on CD ?
rahulkothari
10-09-2002, 10:33 AM
how to save a website on CD ? i wanna download my own website (http://dcsim.8m.com) which i made online on a CD.
If i save the indidvidual pages, and then copy those on CD, i think the links wont be preserved. Could anyone tell me a foolproof way to save the entire website (about 6 pages interlinked) on CD ?
TIA.
I would use the editing functions of what ever online tool you used and copy the source code of your pages to notepad and save them as htm files, or if it won't let you see the soruce, right click on each page and use the "view source".
That site will fit on a floppy, so make a folder to store the pages in and put it on a floppy for now (or if you have a bunch of other stuff ready to burn.....then I guess you can put it to CD). The first page is only 4.4K]B....so you are probably under 50K for the pages (add maybe 200k for the pics and you would still have about 4/5 of a floppy left....)
But in any case, it is best to grab the source in the purest form you can...also if you name the folder correctly your links should still work.
rahulkothari
10-09-2002, 02:29 PM
i saved the entire website in a folder named "dcsim.8m.com" .... but when i changed the location of the folder on my hdd , the pics on the page loaded fine, but the links didnt work... coz the path of the picture was changed automatically to the new location but the links didnt update.
by looking at page-source, i can change the path of the link ... but in the first place what should i change the link to ... coz i wanna burn it on CD and the drive letters for cd is obviously different in different PCs.
for ex- if i change the path of link to z:\dcsim.8m.com\main.html, the link will work fine on my PC as cd-drive letter is Z:\ but if i want to run it on other PC where the drive letter is not Z:, it wont work.
so is there any such keyword/ or a common drive-letter or anything that would automatically change the path when copied to new location ?
better still, can i convert all the html pages in one stand-alone .exe file ?
david eaton
10-09-2002, 03:38 PM
rahulkothari The problem you have is caused by the difference between
relative andabsolute links..
To save a website to a CD, or even to a folder on your hard drive, all the links need to changed to relative.
For example, on the website I manage, the "IMG" tags are relative.
like this "<" img src="images/eamos.jpg" ">" This refers to a file in the folder "images". The > and < are used to stop the message displaying an imageplaceholder, instead of the link text.
Now, provided that the page file whatever.htm is in a folder along with the folder /images, this link will work. Pages can reference each other the same way, so no drive letters are needed. The only problem comes with files from another server, which would have to keep the absolute link as in http://www.anyserver.com/foldername/filename
Hope that makes it a bit clearer. If not, post back, someone else will have a go!
David
Paul Komski
10-09-2002, 07:05 PM
I think you must be using the free package from FreeServers and therefore can't use FTP programs like Leech to download a mirror of your site.
If you just want the pages for individual viewing you could save each one from IE using save as Web Archive (mht).
Another thing you could try is a program like WebZip (http://www.spidersoft.com/) which will convert the online site to an "intranet" on your HDD (or Floppy if you point it to one).
When I looked at your site I didn't mentioned anything about relative/absolute links because veiwing the source looked like they were relative......ooops, my mistake.
rahulkothari
10-10-2002, 12:50 PM
first i downloaded the website using a software called "teleport" , but when i changed the location links didnt work. then as per Paul's suggestion, used "webzip", changed the location and the links work !!!
but hey, you would ask why didnt i directly burn on CD ... thats coz i dont have a cd-writer, i am gonna take my hd out and fit it in brother's pc which has a cd writer. (i am going to do that tommorow, will post back the result) I copied the files on floppy and the website worked from there too. hope it works from cd.
david, thanks for explaining the concept of relative and absolute links.
mjc, to err is human... to forgive, divine. ;)
rahulkothari
10-11-2002, 02:22 PM
yep, the website works from cd too. thx a lot Paul, the software you mentioned did the job. :)
vBulletin v3.6.1, Copyright ©2000-2009, Jelsoft Enterprises Ltd.