Board index   FAQ   Search  
Register  Login
Board index php forum :: php coding PHP coding => General

How To Save Login Information In a file on server?

Ask about general coding issues or problems here.

Moderators: macek, egami, gesf

How To Save Login Information In a file on server?

Postby creative26 » Sat Nov 03, 2012 3:11 am

Hi all;

I've uploaded a php code for a proxy browser that is here:
http://www.4shared.com/zip/MT-eEmCR/surrogafier.html

I want to add a procedure to it to log any username and password or other information entered through this browser;
Better to be saved in a text file.

I've searched about this issue and found some points as following:
http://stackoverflow.com/questions/4486 ... etails-php
http://stackoverflow.com/questions/2382 ... e-password

But I couldn't conclude a working solution (a piece of code for adding to the surrogafier.php code) !
I'm so much new to php programming and I'm going to use this modified browser in part of my project, so I can't discern which solution is better (set cookie, save in the session or ...) and where should I add the required code in the surrogafier.php (browser) ?

Perhaps, something like Firefox reaction to save user&pass during first login to Gmail in browser...

Anyway, I need a piece of PHP code to add it somewhere inside the surrogafier.php proxy browser to log and save the entered user&pass and other details in a text file on the server,

Could you put here this piece of code and guild me where I should add it in the surrogafier.php code to be able to test it using WampServer, etc?


I so much appreciate you if help me.
TIA.
creative26
New php-forum User
New php-forum User
 
Posts: 2
Joined: Sat Sep 15, 2012 3:20 am

Re: How To Save Login Information In a file on server?

Postby faust » Mon Nov 05, 2012 12:32 am

First, tell why do you need to save the user info in text file on the server? This is a GREAT SECURITY ISSUE and you should never ever do it, unless you have a really good reason for it.
faust
New php-forum User
New php-forum User
 
Posts: 109
Joined: Thu May 03, 2012 7:22 am

Re: How To Save Login Information In a file on server?

Postby seandisanti » Wed Nov 07, 2012 3:06 pm

Yeah the whole thing sounds fishy, wants to make a proxy that logs every set of credentials?
seandisanti
php-forum Fan User
php-forum Fan User
 
Posts: 838
Joined: Mon Oct 01, 2012 12:32 pm


Return to PHP coding => General

Who is online

Users browsing this forum: No registered users and 2 guests

Sponsored by Sitebuilder Web hosting and Traduzioni Italiano Rumeno and antispam for cPanel.