#1 2008-12-04 07:46:20

etksbgh

Administrator

Zarejestrowany: 2008-12-03
Posty: 6
Punktów :   

[PHP] Stronka / Spells

Moze ktos wpadnie na pomysl gdzie jest problemw skrypcie spells.xml lub spells php, skoro na stronce pisze:

Kod:

 Fatal error: Call to undefined function: simplexml_load_string() in C:\Users\Mazur\Downloads\OTS\Dodatki\Acc Maker\includes\spells.php on line 12

A skrypt wyglada tak:

Kod:

 <?
$root = "$data_folder";

$f = @file_get_contents($root . "\\spells\\spells.xml");

if($f === FALSE)
    {
    echo "<b>Niepoprawna ¶cieżka do katalogów, popraw to w configu!</b>";
    }
else
    {
    $XML = simplexml_load_string($string);
    echo 'Czary na serverze: (Niektóre czary sa dostępne tylko dla potworów.)<br><br>
    <table border="1" align="center" width="90%" bordercolordark="black" bordercolorlight="black" class="mon">  
    <tr> 
    <th width="60%">Spell name:</th><th width="20%">Mana</th><th width="20%">Magic level</th> 
    </tr>'; 
    
    foreach($XML->spell as $spell) 
        { 
        if($spell['enabled'] == 0) continue; 
  
        echo "<tr> 
        <td width=\"60%\">".$spell['name']."    (".$spell['words'].") </td> 
        <td width=\"20%\">".$spell['mana']."</td> 
        <td width=\"20%\">".$spell['maglv']."</td> 
        </tr>"; 
        }
    echo "</table>"; 
    }    
?>

Offline

 

Stopka forum

RSS
Powered by PunBB
© Copyright 2002–2008 PunBB
Polityka cookies - Wersja Lo-Fi


Darmowe Forum | Ciekawe Fora | Darmowe Fora
www.carex.pun.pl www.szczesciarze.pun.pl www.gra-pokemon2.pun.pl www.el-trans.pun.pl www.showupvip.pun.pl