473,407 Members | 2,546 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,407 software developers and data experts.

Replacing links en masse on an ftp accessible server only

Hello All:

I have access to my web server only through ftp.

There are some directory structures that an administrator changed, and
all my links are broken.

I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Are there any tools out there that can work through an ftp connection?

Thanks!

Deguza
Mar 10 '08 #1
5 1601
"Kompu Kid" <de****@hotmail.comwrote in message
news:15**********************************@i7g2000p rf.googlegroups.com...
Hello All:

I have access to my web server only through ftp.

There are some directory structures that an administrator changed, and
all my links are broken.

I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.
Sorry to be obvious, but is there any reason why you cannot:

1) download the files to your local machine via FTP
2) run the "small program" as described above
3) save and upload the files, replacing the old versions
?

--
-=# Amos E Wolfe #=-
Mar 10 '08 #2
On Mar 10, 1:00 pm, "Amos E Wolfe" <amos.wo...@ntlworld.comwrote:
"Kompu Kid" <deg...@hotmail.comwrote in message

news:15**********************************@i7g2000p rf.googlegroups.com...
Hello All:
I have access to my web server only through ftp.
There are some directory structures that an administrator changed, and
all my links are broken.
I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Sorry to be obvious, but is there any reason why you cannot:

1) download the files to your local machine via FTP
2) run the "small program" as described above
3) save and upload the files, replacing the old versions
?

--
-=# Amos E Wolfe #=-
Hello Amos:

That is the alternative we are already considering. However, we are
talking about many gigs of html. Last time I tried to download it it
took 8 hours or so.
Deguza
Mar 10 '08 #3
rf

"Kompu Kid" <de****@hotmail.comwrote in message
news:77**********************************@s8g2000p rg.googlegroups.com...
On Mar 10, 1:00 pm, "Amos E Wolfe" <amos.wo...@ntlworld.comwrote:
>"Kompu Kid" <deg...@hotmail.comwrote in message

news:15**********************************@i7g2000 prf.googlegroups.com...
Hello All:
I have access to my web server only through ftp.
There are some directory structures that an administrator changed, and
all my links are broken.
I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Sorry to be obvious, but is there any reason why you cannot:

1) download the files to your local machine via FTP
2) run the "small program" as described above
3) save and upload the files, replacing the old versions
?

--
-=# Amos E Wolfe #=-

Hello Amos:

That is the alternative we are already considering. However, we are
talking about many gigs of html. Last time I tried to download it it
took 8 hours or so.
Think carefully about this.

If you find or write a program to do what you want via FTP then what is it
going to do?

It will "open" the file, that is read it into memory, that is, effectively,
download it via FTP to the local machines memory. Then it is will change the
in memory copy of the file. Then it will "save" the file, that is,
effectively, upload it via ftp to the host machine.

Same as FTPing all the files down, changing them locally an then FTPing them
all back up again.

What you *really* want is a program (or, say, PHP script) that runs on the
host.

--
Richard.
Mar 10 '08 #4
On Mon, 10 Mar 2008 12:35:12 -0700 (PDT)
Kompu Kid <de****@hotmail.comwrote:
I identified the text pattern to change in my links, and if the web
pages were locally accessible, or if I could remote connect to the
server, I could write a small program to change these, but ftp only
access is not letting me use these options.

Are there any tools out there that can work through an ftp connection?
You could use Apache as a proxy, with the regime described in
http://www.apachetutor.org/admin/reverseproxies

Apache supports FTP both as frontend and backend, but I suspect
your task may be easiest if you use HTTP for the frontend, and
FTP at the backend only.

--
Nick Kew

Application Development with Apache - the Apache Modules Book
http://www.apachetutor.org/
Mar 10 '08 #5
Kompu Kid wrote:
That is the alternative we are already considering. However, we are
talking about many gigs of html. Last time I tried to download it it
took 8 hours or so.
What is the server? Apache? Do you have access to .htaccess file and
rewrite mod?

RewriteEngine on

^foo/(.*)$ bar/$1
--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com
Mar 11 '08 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Jerry Werner | last post by:
I need to replace my email address on hundreds of web pages with a new address (in a graphic, not a mailto) in order to thwart the email harvesters that spammers are using. Ideally, I'd like to do...
14
by: Eli | last post by:
I'm fairly unfamiliar with CSS, but want to develop a way to skin a web application by using stylesheets for everything, including all images. I have a set of images used as buttons - mostly for...
2
by: thehuby | last post by:
Isn't inserting good data and getting it out of a db a pain in the a$$? I am going to be using the Markdown text to HTML parser (http://daringfireball.net/projects/markdown/dingus) for creating...
12
by: anonymous | last post by:
Hello, I need to replace this char  with another char. However I am not able to acieve this. I tried this but it doesnt work: str = str.Replace(chr(asc(194)), "") Can somebody help ?
3
by: mike | last post by:
I added a linked server successfully; but the only tables accessible are only the system tables! I do have all the rights on both servers (Windows & SQL server). All the non system tables are...
14
by: Adnan Siddiqi | last post by:
Hi Suppose I have following URLs comming from an HTML document <a href="http://mydomain1.com">Domain1</a> <a...
4
by: evgenyg | last post by:
Hello ! We have the following situation - when Ajax request is sent what's being returned by the server is usually an XML (which is used for DOM updates) but sometimes it's HTML which is a whole...
7
by: Cate Archer | last post by:
I want to have a border around an image that changes color when the mouse hovers over it. The following code works perfectly in FireFox but not in Internet Exploiter. The text link changes color...
1
by: Grant | last post by:
On 16 Oct 2008 21:55:42 GMT, ram@zedat.fu-berlin.de (Stefan Ram) wrote: Crap, you've obviously not visited a site that renders as "" ...not accessible at all. Grant. --...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.