:(
Hi guys, I need help with the following problem please...
<?php
require_once("../config.inc");
if((ereg("^[[:alnum:]]+$", $HTTP_POST_VARS[username]))AND(eregi
("^[[:alnum:]]{8,8}$", $HTTP_POST_VARS[password])))
{
$query="SELECT user_id, first_name, password FROM users WHERE username='$HTTP_POST_VARS[username]'";
$query_result=mysql_query($query, $db_connection)or die(mysql_error());
$result=@mysql_fetch_array($query_result);
if((crypt($password, $result[password]))==$result[password]){
session_start();
$user_id=$result[0];
$first_name=$result[1];
session_register('user_id');
session_register('first_name');
header("Location:index.php");
exit;
}else{
$message=urlencode("The username and password submitted do not match those on file. Please try again.");
}
}else{
$message=urlencode("Please enter your username and password to log in.");
}
header("Location:index.php?error_message=$message" );
exit;
?>
...that's the code.
The problem is everytime I tried to open my code with
http://localhost, it always gives me an error code saying:
FATAL error include path(';c:\php4\pear'), but I already change the php.ini.dist to my folder, which is d:\php\pear but apparently it still won't work. I also shut down the apache and mysql service before I changed the php.ini...but the result remain the same.
Please help...and thank you in advance...