[FX.php List] Lesson learned about password values
Bob Patin
bob at patin.com
Fri Jan 11 10:20:38 MST 2008
Dan,
What a GREAT trick! I don't need it now, but I know I will sometime.
Thanks for sharing a great trick,
Bob Patin
Longterm Solutions
bob at longtermsolutions.com
615-333-6858
http://www.longtermsolutions.com
Member of FileMaker Business Alliance and FileMaker TechNet
CONTACT US VIA INSTANT MESSAGING:
AIM or iChat: longterm1954
Yahoo: longterm_solutions
MSN: tech at longtermsolutions.com
ICQ: 159333060
--------------------------
Contact us for FileMaker hosting and programming for all versions of
FileMaker
PHP • CDML • Full email services • Free DNS hosting • Colocation •
Consulting
On Jan 11, 2008, at 11:17 AM, DC wrote:
> 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
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list
More information about the FX.php_List
mailing list