Replacing links en masse on an ftp accessible server only

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Kompu Kid

    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
  • Amos E Wolfe

    #2
    Re: Replacing links en masse on an ftp accessible server only

    "Kompu Kid" <deguza@hotmail .comwrote in message
    news:155a77e4-ce8d-43b6-8882-7eb139b38aa7@i7 g2000prf.google groups.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 #=-


    Comment

    • Kompu Kid

      #3
      Re: Replacing links en masse on an ftp accessible server only

      On Mar 10, 1:00 pm, "Amos E Wolfe" <amos.wo...@ntl world.comwrote:
      "Kompu Kid" <deg...@hotmail .comwrote in message
      >
      news:155a77e4-ce8d-43b6-8882-7eb139b38aa7@i7 g2000prf.google groups.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

      Comment

      • rf

        #4
        Re: Replacing links en masse on an ftp accessible server only


        "Kompu Kid" <deguza@hotmail .comwrote in message
        news:7740bba9-759e-403a-98b6-493fd7be7fe0@s8 g2000prg.google groups.com...
        On Mar 10, 1:00 pm, "Amos E Wolfe" <amos.wo...@ntl world.comwrote:
        >"Kompu Kid" <deg...@hotmail .comwrote in message
        >>
        >news:155a77e 4-ce8d-43b6-8882-7eb139b38aa7@i7 g2000prf.google groups.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.


        Comment

        • Nick Kew

          #5
          Re: Replacing links en masse on an ftp accessible server only

          On Mon, 10 Mar 2008 12:35:12 -0700 (PDT)
          Kompu Kid <deguza@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


          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

          Comment

          • Jonathan N. Little

            #6
            Re: Replacing links en masse on an ftp accessible server only

            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

            Comment

            Working...