PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : [PHP] Problem UCP



Exton
28.09.2010, 18:14
Hallo , ich habe ein UserControllPanel får mein Samp Server , aber wenn man sich einlogg kommt diese Meldung .


Black Dragon Community - CP


Warning: parse_ini_file() [function.parse-ini-file]: URL file-access is disabled in the server configuration in /var/www/web4/html/CP/functions.php on line 26

Warning: parse_ini_file(ftp://...@94.249.*.*/scriptfiles/Accounts/exton.ini) [function.parse-ini-file]: failed to open stream: no suitable wrapper could be found in /var/www/web4/html/CP/functions.php on line 26

Habe mir gedacht vllt kennt sich einer mit Samp und PHP aus und könnte mir helfen

/e Also hier ist der Ausschnitt

class functions
{
// Read out the userinformations
function GetPlayerInfo($user)
{
require "config.php";
$file="$GameDir/scriptfiles/$user.ini";
if(!file_exists($file)) return false;
$data = parse_ini_file($file);
return $data;
}

Zeile 26 ist das : $data = parse_ini_file($file);

Bin får jede hilfreiche Antwort dankbar

mfg Throx

Hu5eL
28.09.2010, 19:55
so wie ich das versteh, darfst du keine ini-datein von der url parsen... steht da doch xD

0x30
28.09.2010, 22:15
Die Config von PHP anpassen..