Click here to get back home

Replacing links en masse on an ftp accessible server only

 HomeNewsGroups | Search | About
 comp.infosystems.www.authoring.html    Post an article   get this group's latest topics as an RSS feed add this group's latest topics to your My MSN content add this group's latest topics to your My Yahoo content
Subject Author Date
Replacing links en masse on an ftp accessible server only Kompu Kid 03-10-2008
Posted by Kompu Kid on March 10, 2008, 3:35 pm
Please log in for more thread options
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

Posted by Amos E Wolfe on March 10, 2008, 4:00 pm
Please log in for more thread options
> 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 #=-



Posted by Kompu Kid on March 10, 2008, 4:21 pm
Please log in for more thread options
>
>
> > 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

Posted by rf on March 10, 2008, 6:49 pm
Please log in for more thread options

>>
>>
>> > 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.



Posted by Jonathan N. Little on March 10, 2008, 8:08 pm
Please log in for more thread options
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

Similar ThreadsPosted
Accessible forms June 23, 2005, 7:01 am
Accessible Layered Table August 25, 2006, 1:14 pm
Web sites agree to be accessible to the blind August 20, 2004, 10:45 am
Replacing name with id January 5, 2008, 11:45 pm
css replacing tables August 23, 2004, 11:16 am
Replacing outdated tag attributes June 15, 2006, 6:23 pm
About charset setting and replacing July 14, 2006, 6:29 am
replacing innerHTML in xhtml July 28, 2008, 4:49 am
Getting to the img src on another server. June 27, 2005, 4:11 am
Set Up of Web Server File January 31, 2006, 8:40 pm

Our other projects:

Art Dolls, Fairies and Mermaids - Sunnyfaces.net

Roy's Linux, Programming and Search Engines messages

1-Script XML SitemapXML Sitemap