Need Help finding a script

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • DrCocker
    Registered User
    • Oct 2003
    • 14

    #1

    Need Help finding a script

    Hello all

    I am trying to find a script that I can run on my server that will search through all pages on the server (recursivly through folders as well) finding text in files and replacing with new text I specify. Preferably in PHP. If anyone knows of such a script, I would greatly appreciate a heads up.

    TIA
  • Weber
    Confirmed User
    • Mar 2003
    • 1114

    #2
    I don't know any.... but i can write one for you
    If you're interested.... icq me 111833551
    Just a sig

    Comment

    • raymor
      Confirmed User
      • Oct 2002
      • 3745

      #3
      I have such a script for you that I've set
      up for a few people recently after the AC fiasco.
      Thank goodness it's not in PHP, as the script
      has to have write permissions to all of your files
      and PHP is inherently insecure.
      There's no way I'd ever set up a PHP script with
      write access to everything.
      For historical display only. This information is not current:
      support@bettercgi.com ICQ 7208627
      Strongbox - The next generation in site security
      Throttlebox - The next generation in bandwidth control
      Clonebox - Backup and disaster recovery on steroids

      Comment

      • V_RocKs
        Damn Right I Kiss Ass!
        • Nov 2003
        • 32447

        #4
        I think they call it DreamWeaver, it is made by Macromedia...

        Comment

        • DrCocker
          Registered User
          • Oct 2003
          • 14

          #5
          V Rocks

          How does dreamweaver run on the server so I could do a serverwide Search & Replace? I have thousands of different pages that I need to do a replace on. Doing so locally and then uploading is too painful. If DW really does do this, I'd appreciate the tip.

          Best regards

          Comment

          • macker
            Confirmed User
            • Jul 2003
            • 2161

            #6
            SSH into your server....

            man grep

            This should help ya - providing you got a linux box that is.

            ForcedMen | AsianViolation | WorkMyCock | TickleAsian | MasturbationInstructors | AssCleaners | TickleTorment | Fetish4Download (VOD) | PantyhosePlaza | FemaleDomination
            mick[at]fetishassets.com | ICQ: 395-117

            Comment

            • SMG
              Confirmed User
              • Aug 2003
              • 1798

              #7
              I could make a shell script that does this with sed if you need it...
              TGP Webmasters: sign up for the top 100 tgp list!
              Submit galleries
              If you add me to icq (title) make sure to mention GFY or I'll think you're a bot and deny you.

              Comment

              • lrogg
                Registered User
                • Dec 2002
                • 12

                #8
                What type of server are you on? (Windows/Linux/etc.)

                Comment

                • lrogg
                  Registered User
                  • Dec 2002
                  • 12

                  #9
                  P.S.

                  Dreamweaver is a client side program. It is a good editor, but it is not meant to run on the server unleass you want to try to run it on a windows server and open a remote session somehow...

                  http://www.macromedia.com/software/dreamweaver/

                  Your best bet would be a shell script.
                  find, sed, and or perl are your friends...
                  man <command> to find out more about the command in quesion, like macker said.

                  Comment

                  • DrCocker
                    Registered User
                    • Oct 2003
                    • 14

                    #10
                    Thanks for the replies all. It is running on a redhat linux server. I would like to try out that shell script if possible.

                    p.s. Actually I use dreamweaver and know its only a client side app. I was just wondering if V knew of some technique using it that I was unaware of.

                    Regards,
                    Doc

                    P.S. Always looking for good submissions! www.drcocker.com

                    Comment

                    • dj-ohki
                      Registered User
                      • Jan 2004
                      • 11

                      #11
                      find /path/to/dir/with/php/files/in/it -iname \*.php | xargs perl -p -i.orig -e 's/search/replace/g'

                      Comment

                      • timboss
                        Confirmed User
                        • Sep 2003
                        • 627

                        #12
                        Originally posted by DrCocker
                        Hello all

                        I am trying to find a script that I can run on my server that will search through all pages on the server (recursivly through folders as well) finding text in files and replacing with new text I specify. Preferably in PHP. If anyone knows of such a script, I would greatly appreciate a heads up.

                        TIA

                        http://www.hotscripts.com
                        ICQ:
                        338637464

                        Comment

                        Working...