URGENT how do i find a line of code without opening each file

Discussion in 'PHP' started by horseygirl, Jan 30, 2011.

  1. #1
    hi

    ive just moved servers and copied the files over and database. but the script is sending out emails to an old email address.

    for the life of me i cannot find the file that has the email address in it.

    do i have to open them all?

    god i hope not
     
    horseygirl, Jan 30, 2011 IP
  2. Tutorial Feed

    Tutorial Feed Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    What text editing software are you using? I know in DreamWeaver you can set the folder as a managed site and then search recursively through all the files to find a snippet.
     
    Tutorial Feed, Jan 30, 2011 IP
  3. horseygirl

    horseygirl Well-Known Member

    Messages:
    534
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    143
    #3
    i have dreamweaver cs5
     
    horseygirl, Jan 30, 2011 IP
  4. Tutorial Feed

    Tutorial Feed Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Perfect. On the Files window ( displayed by default on the Coder layout, or press F8 if it is not there I think ) and then select Manage Sites... from the dropdown, New, navigate to the folder and select it. Then select that site from the dropdown.

    Then when you press CTRL+F, in the "Find In" dropdown you can select "Entire Current Local Site" and click Find All ( you could also do this with some content to replace it.

    Should help cut down on that mammoth task!
     
    Tutorial Feed, Jan 30, 2011 IP
  5. horseygirl

    horseygirl Well-Known Member

    Messages:
    534
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    143
    #5
    horseygirl, Jan 30, 2011 IP
  6. Tutorial Feed

    Tutorial Feed Peon

    Messages:
    29
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    From what I can tell it is navigating the page to this URL, where I would assume it performs PHP validation:
    /system/index.php/Index/doEmployerRegister

    If you can't find the email, try searching for the term "mail" and FindAll, you will have to look through a fair few results but that should catch either the PHP mail() function or PHPMailer Class.
     
    Tutorial Feed, Jan 30, 2011 IP
  7. militarysmurf

    militarysmurf Member

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #7
    find ./ | xargs grep "email"
     
    militarysmurf, Jan 31, 2011 IP
  8. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #8
    why so hard? :D just use

    mc

    (apt-get install mc) in ubuntu
     
    G3n3s!s, Jan 31, 2011 IP
  9. militarysmurf

    militarysmurf Member

    Messages:
    93
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    40
    #9
    Cause the above works in almost every distro?
     
    militarysmurf, Jan 31, 2011 IP
  10. G3n3s!s

    G3n3s!s Active Member

    Messages:
    325
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    80
    #10
    mcc works too ;)
     
    G3n3s!s, Jan 31, 2011 IP
  11. horseygirl

    horseygirl Well-Known Member

    Messages:
    534
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    143
    #11
    where do i put that lol

    thanks for this help
     
    horseygirl, Feb 1, 2011 IP