View Full Version : Extracting zip files
holyowned
12-25-2007, 09:36 AM
If this has been addressed elsewhere, please point me in the right direction. I uploaded a zip file, to replace some HTML pages. When I extract the files, it assumes [N]one in the replacement option. How do I change this? Ideally, I would like to find a way to do a search/replace of a text string in my HTML pages, to replace my old server addy with my new domain site-wide, rather than edit the HTML files on my computer, zip the HTML, and upload it.
http://www.holyowned.us
The only pages I have up right now are in the Colorado '07 link.
Thanks in advance
shadmego
12-25-2007, 09:47 AM
Greetings, and welcome to the Hostmonster User Community!
In order to help you, I will have to clear some things up in your post. Specifically, what are you talking about when you say "it assumes [N]one in the replacement option? What program are you using? What are you zipping your updated files? You can just upload the files themselves with a FTP program. You can also make small changes to any HTML file directly in your web account via the File Manager found in CPanel.
What exactly are you asking about?
~regards
holyowned
12-25-2007, 07:20 PM
Sorry, let me clarify. I have the zip files - created with WinZip - on my system. I upload them to your server, and when I use Legacy to extract them, it comes up with the following message:
Archive: 20070817waldronM_002.zip
replace 20070817waldronM_002.html? [y]es, [n]o, [A]ll, [N]one, [r]ename: NULL
(assuming [N]one)
There are about 194 HTML files in that zip file. It doesn't extract any.
Thanks in advance,
holyowned
12-27-2007, 04:00 PM
As far as the HTML code, it is a small change, but it grows rapidly when you start talking over 500 files. Being able to change them on my domain would be sweet, as I have dial-up connection usually. A search/replace script, perhaps, with instructions for a noob??
shadmego
12-27-2007, 05:51 PM
You should not have to upload every single file if you are only making small changes in a few.
You mentioned you were using the Legacy File Manager to extract your files. Have you tried the updated one? You can open any text file in your account and make the necessary changes directly in File Manager, either Legacy or the new one.
I apologize if I'm not fully understanding what you're talking about. I think I'm getting confused by the terms you are using.
~regards
I think the issue is that the Legacy File manager ZIP extract doesn't overwrite files that already exist. (Not that I use it anymore so this is from memory).
So I guess the original question is, is there anyway to make the Legacy File Manager ZIP extract process overwrite files that already exist...
holyowned
12-28-2007, 06:14 AM
Thank you, r2b2. I guess I need to learn the language. :) What r2b2 said..........
shadmego
12-28-2007, 08:22 AM
Is the Legacy zip process the same as the one for the new version of File Manager? Have you tried to use the one there instead of the Legacy version?
Also, why not just use an FTP program and upload the files that way? Instead of going through the process of zipping your website every time a change is made, just upload the files that you change through an FTP client like FileZilla?
~regards
holyowned
12-29-2007, 03:49 AM
I don't know, shadmego. I go to hostmonster.com, log in, and go to my cpanel. Neither Legacy File Manager or File manager will overwrite existing files if you extract a zip file with files with the same name. I am completely new at this, so I downloaded all my files from my old server, uploaded them to hostmonster, and THEN realized I needed to change links in those files to reflect my new domain. Hence the need for a small change to a large number of files that were already uploaded to hostmonster............. Sorry if I am not making myself clear.
shadmego
12-29-2007, 09:13 AM
I think I understand how what you are attempting to do. I apologize for being dense.
I am however, still confused as to why the unzip process isn't working as it should be. I just uploaded a compressed file (.tar.bz2) and extracted the files in there to a directory where it had to overwrite similar files. Both Legacy and the new version of File Manager worked without giving me an error.
I will try a zip file later today and let you know how it goes.
On a side note, there is a much easier way to make updates to websites (for the future).
1. Make all your pages php pages
2. create a menu file (html or php)
3. use the include command from php to attach the menu file to all your website pages.
This may seem difficult, but it is not that hard. The only line of code you would change in all your web pages would be to delete all the menu related items, and in their place, insert <? include('menu.html'); ?> (or menu.php if you choose).
The reason to do this is to help facilitate changes to your website in the future. If you want to add or change links to your site later, you only have to change one file instead of several hundred.
sdasevne
12-29-2007, 01:42 PM
1. Make all your pages php pages
2. create a menu file (html or php)
3. use the include command from php to attach the menu file to all your website pages... insert <? include('menu.html'); ?>
You could also rename the "calling" page to a .shtml page and insert this
<!--#include virtual="menu.htm" -->
or
install FrontPage extensions, insert this
<!--webbot bot="Include" U-Include="menu.htm" TAG="BODY" -->
and not have to rename anything.
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.