[FX.php List] Lesson learned about password values
DC
dan.cynosure at dbmscan.com
Fri Jan 11 10:17:56 MST 2008
egrep is your friend for "tracking down and locating" strings in files.
on mac osx open terminal, cd to the root of your "scripts" directory,
and run this:
egrep -rn 'typepasswordhere can have spaces and can be a regexp' *
r means recurse, n means tell the line number, and star means check
every file in the directory.
you'll see filenames with line numbers where your string appears.
cheers,
dan
Jonathan Schwartz had written:
> Hi Folks,
>
> I'm trying to track down the source of unauthorized emails going through
> my mail server. The problem is, when I first started using PHPMailer, I
> used a hard-coded Username and Password. Guess what? I now need to
> locate and edit every script in every project that contains that
> password pair.
>
> If I had used a variable and stored it into a centrally-located include
> file, the change would have been made just once...or at least once per
> project.
>
> Is server_data the right place? If so, then that would require a change
> in every solution/project. Otherwise, where would one store a single
> server_data file that feeds all solutions? I've heard discussion about
> not storing the server data on the same machine, also.
>
> Thx
>
> Jonathan
>
>
More information about the FX.php_List
mailing list