Serious PHP question
#6

why are you using: $file="$GameDir/scriptfiles/accounts/$user.acc";

$ before the user.acc and before the GameDir ?

Try:

PHP код:

    
function GetPlayerInfo($user)
    {
        require 
"config.php";
        
$file="$GameDir/scriptfiles/accounts/"$user.".acc";
        if(!
file_exists($file)) return false;
        
$data parse_ini_file($file);
        return 
$data;
    } 
and also if you got gamedir too a var so use:

PHP код:
    function GetPlayerInfo($user)
    {
        require 
"config.php";
        
$file""$GameDir."/scriptfiles/accounts/"$user.".acc";
        if(!
file_exists($file)) return false;
        
$data parse_ini_file($file);
        return 
$data;
    } 
Reply


Messages In This Thread
Serious PHP question - by Dripac - 20.03.2012, 21:17
Re: Serious PHP question - by Max_Coldheart - 20.03.2012, 21:22
Re: Serious PHP question - by Dripac - 20.03.2012, 21:24
Re: Serious PHP question - by titanak - 20.03.2012, 21:37
Re: Serious PHP question - by Dripac - 20.03.2012, 21:46
Re: Serious PHP question - by titanak - 20.03.2012, 22:21

Forum Jump:


Users browsing this thread: 1 Guest(s)