Czary

Yogus

User
Zarejestrowany
Dołączył
Marzec 27, 2009
Posty
28
Liczba reakcji
2
siemka wszystkim mam taki problem z czarami wyskakuje mi b??d na stronie :


Fatal error: Call to undefined function: simplexml_load_string() in D:\Program Files\WebServ\httpd\includes\czary.php on line 12

za naprawienie czarow reputtt

mam nadzieje ze kto? mi pomo?e :p
 
Odp: Czary

Podaj linki od 1 do 12 czary.php


@edit Masz poda? linijki kodu od 1 do 12 z pliku czary.php
 
Ostatnia edycja:
Odp: Czary

<?
$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($f);
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>";
}
?>
 
Odp: Czary

@up A ty co?
@topic czekam

<?
$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($f);
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>";
}
?>

Z tego co wyczyta?em tutaj:
$f = @file_get_contents($root . "\\spells\\spells.xml");
musisz poda? ?cie?k? gdzie jest plik spells.xml
 
Odp: Czary

to brata profil nabijam mu posty

pewnie wiesz jak to ze starszymi bracmi ale moj to noob...

teraz pisze Parse error: syntax error, unexpected ':' in D:\Program Files\WebServ\httpd\includes\czary.php on line 4

moze piszmy na gg 9243610
 
Back
Do góry