Ir para conteúdo
  • Cadastre-se

[AJUDA AKI] Bug no XAMPP


Posts Recomendados

o meu xampp fiz tudo certim mais na ultima parte deu isso :

qdo eu clico pra ver meu site q é em : load monster from ots ( é oq ta falando na video aula lah , q aparece o site do cara qdo ele klika la ). mais no meu aparece isso qdo eu cliko :

Warning: DOMDocument::load() [function.DOMDocument-load]: StartTag: invalid element name in file:///C%3A/Users/Usu%E1rio/Desktop/BaiakEditado/data/monster/8.4/Zombie.xml, line: 43 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: StartTag: invalid element name in file:///C%3A/Users/Usu%E1rio/Desktop/BaiakEditado/data/monster/8.4/Zombie.xml, line: 44 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: StartTag: invalid element name in file:///C%3A/Users/Usu%E1rio/Desktop/BaiakEditado/data/monster/8.4/Zombie.xml, line: 43 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: StartTag: invalid element name in file:///C%3A/Users/Usu%E1rio/Desktop/BaiakEditado/data/monster/8.4/Zombie.xml, line: 44 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Fatal error: Call to a member function hasAttribute() on a non-object in C:\xampp\htdocs\pot\OTS_Monster.php on line 95

ajuda ae! ReP+

Link para o post
Compartilhar em outros sites

<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;

/**

* List of loaded monsters.

*

* @var array

*/

private $monsters = array();

/**

* Loads monsters mapping file.

*

* <p>

* Note: You pass directory path, not monsters.xml file name itself.

* </p>

*

* @param string $path Monsters directory.

* @throws DOMException On DOM operation error.

*/

public function __construct($path)

{

$this->monstersPath = $path;

// makes sure it has directory separator at the end

$last = substr($this->monstersPath, -1);

if($last != '/' && $last != '\\')

{

$this->monstersPath .= '/';

}

// loads monsters mapping file

$monsters = new DOMDocument();

$monsters->load($this->monstersPath . 'monsters.xml');

foreach( $monsters->getElementsByTagName('monster') as $monster)

{

$this->monsters[ $monster->getAttribute('name') ] = $monster->getAttribute('file');

}

}

/**

* Magic PHP5 method.

*

* Allows object importing from {@link http://www.php.net/m....var-export.php var_export()}.

*

* @param array $properties List of object properties.

*/

public function __set_state($properties)

{

$object = new self();

// loads properties

foreach($properties as $name => $value)

{

$object->$name = $value;

}

return $object;

}

/**

* Checks if given monster ID exists on list.

*

* @version 0.1.3

* @since 0.1.3

* @param string $name Monster name.

* @return bool If monster is set then true.

*/

public function hasMonster($name)

{

return isset($this->monsters[$name]);

}

/**

* Returns loaded data of given monster.

*

* @version 0.1.3

* @param string $name Monster name.

* @return OTS_Monster Monster data.

* @throws OutOfBoundsException If not exists.

* @throws DOMException On DOM operation error.

*/

public function getMonster($name)

{

// checks if monster exists

if( isset($this->monsters[$name]) )

{

// loads file

$monster = new OTS_Monster();

$monster->load($this->monstersPath . $this->monsters[$name]);

return $monster;

}

throw new OutOfBoundsException();

}

/**

* Returns amount of monsters loaded.

*

* @return int Count of monsters.

*/

public function count()

{

return count($this->monsters);

}

/**

* Returns monster at current position in iterator.

*

* @return OTS_Monster Monster.

* @throws DOMException On DOM operation error.

*/

public function current()

{

return $this->getMonster( key($this->monsters) );

}

/**

* Moves to next iterator monster.

*/

public function next()

{

next($this->monsters);

}

/**

* Returns name of current position.

*

* @return string Current position key.

*/

public function key()

{

return key($this->monsters);

}

/**

* Checks if there is anything more in interator.

*

* @return bool If iterator has anything more.

*/

public function valid()

{

return key($this->monsters) !== null;

}

/**

* Resets iterator index.

*/

public function rewind()

{

reset($this->monsters);

}

/**

* Checks if given element exists.

*

* @param string $offset Array key.

* @return bool True if it's set.

*/

public function offsetExists($offset)

{

return isset($this->monsters[$offset]);

}

/**

* Returns item from given position.

*

* @version 0.1.3

* @param string $offset Array key.

* @return OTS_Monster Monster instance.

* @throws DOMException On DOM operation error.

*/

public function offsetGet($offset)

{

return $this->getMonster($offset);

}

/**

* This method is implemented for ArrayAccess interface. In fact you can't write/append to monsters list. Any call to this method will cause {@link E_OTS_ReadOnly E_OTS_ReadOnly} raise.

*

* @param string|int $offset Array key.

* @param mixed $value Field value.

* @throws E_OTS_ReadOnly Always - this class is read-only.

*/

public function offsetSet($offset, $value)

{

throw new E_OTS_ReadOnly();

}

/**

* This method is implemented for ArrayAccess interface. In fact you can't write/append to monsters list. Any call to this method will cause {@link E_OTS_ReadOnly E_OTS_ReadOnly} raise.

*

* @param string|int $offset Array key.

* @throws E_OTS_ReadOnly Always - this class is read-only.

*/

public function offsetUnset($offset)

{

throw new E_OTS_ReadOnly();

}

/**

* Returns string representation of object.

*

* <p>

* If any display driver is currently loaded then it uses it's method.

* </p>

*

* @version 0.1.3

* @since 0.1.3

* @return string String representation of object.

*/

public function __toString()

{

$ots = POT::getInstance();

// checks if display driver is loaded

if( $ots->isDataDisplayDriverLoaded() )

{

return $ots->getDataDisplayDriver()->displayMonstersList($this);

}

return (string) $this->count();

}

}

/**#@-*/

?>

Editado por Sociopata (veja o histórico de edições)


Regras Gerais 

 

"Califórnia Brasileira :cool: "

Link para o post
Compartilhar em outros sites

onde eu ponho isso????????

Tentei coloca no sql la so q da erro :

Erro

Parece haver um erro na sua consulta SQL. A saída do servidor MySQL abaixo, isto se existir alguma, também poderá ajudar a diagnosticar o problema.

ERROR: String de pontuação desconhecida @ 1

STR: <?

SQL: <?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;<?php

/**#@+

* @version 0.1.0

* @since 0.1.0

*/

/**

* @package POT

* @version 0.1.3

* @author Wrzasq <[email protected]>

* @copyright 2007 - 2008 © by Wrzasq

* @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3

*/

/**

* Wrapper for monsters list.

*

* @package POT

* @version 0.1.3

* @tutorial POT/data_directory.pkg#monsters

*/

class OTS_MonstersList implements Iterator, Countable, ArrayAccess

{

/**

* Monsters directory.

*

* @var string

*/

private $monstersPath;

consulta SQL:

<?php /**#@+ * @version 0.1.0 * @since 0.1.0 */ /** * @package POT * @version 0.1.3 * @author Wrzasq <[email protected]> * @copyright 2007 - 2008 © by Wrzasq * @license http://www.gnu.org/l...es/lgpl-3.0.txt GNU Lesser General Public License, Version 3 */ /** * Wrapper for monsters list. * * @package POT * @version 0.1.3 * @tutorial POT/data_directory.pkg#monsters */ class OTS_MonstersList implements Iterator, Countable, ArrayAccess { /** * Monsters directory. * * @var string */ private $monstersPath;

Mensagens do MySQL : b_help.png

#1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '<?php

class OTS_MonstersList implements Iterator, Countable, ArrayA' at line 1

Link para o post
Compartilhar em outros sites

coloca isso em

C:\xampp\htdocs\pot

abre o OTS_MonstersList.php - e coloca oq eu postei dentro


Regras Gerais 

 

"Califórnia Brasileira :cool: "

Link para o post
Compartilhar em outros sites
  • 4 years later...

eu to com esse mesmo problema aqui:
Warning: DOMDocument::load() [function.DOMDocument-load]: Opening and ending tag mismatch: item line 55 and loot in file:///C%3A/Users/Lucas/Desktop/CLASSIC%20BRTIBIA%208.6/data/monster/Bosses/klingor.xml, line: 63 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: Opening and ending tag mismatch: loot line 50 and monster in file:///C%3A/Users/Lucas/Desktop/CLASSIC%20BRTIBIA%208.6/data/monster/Bosses/klingor.xml, line: 64 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: Premature end of data in tag monster line 2 in file:///C%3A/Users/Lucas/Desktop/CLASSIC%20BRTIBIA%208.6/data/monster/Bosses/klingor.xml, line: 65 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: Opening and ending tag mismatch: item line 55 and loot in file:///C%3A/Users/Lucas/Desktop/CLASSIC%20BRTIBIA%208.6/data/monster/Bosses/klingor.xml, line: 63 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: Opening and ending tag mismatch: loot line 50 and monster in file:///C%3A/Users/Lucas/Desktop/CLASSIC%20BRTIBIA%208.6/data/monster/Bosses/klingor.xml, line: 64 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Warning: DOMDocument::load() [function.DOMDocument-load]: Premature end of data in tag monster line 2 in file:///C%3A/Users/Lucas/Desktop/CLASSIC%20BRTIBIA%208.6/data/monster/Bosses/klingor.xml, line: 65 in C:\xampp\htdocs\pot\OTS_MonstersList.php on line 119

Fatal error: Call to a member function hasAttribute() on a non-object in C:\xampp\htdocs\pot\OTS_Monster.php on line 95

 

 

 

 

TIRAR O MONSTRO KINGLER DO ARQUIVO DO MAPA N RESOLVE, SÓ DIMINUEM AS ADVERTENCIAS.

Link para o post
Compartilhar em outros sites
  • 10 months later...

Desculpa reviver o Tópico, mas estou com o mesmo problema e não estou conseguindo copiar o seu script amigo, tem como postar novamente?
Quando eu abro o conteudo ele trava e não consigo copiar!

Link para o post
Compartilhar em outros sites

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo