Autor Zpráva
PanP
Profil
čau,muže mi někdo poradit s tímto kodem?

if (!$this->xmlDoc->preserveWhitespace) {
			$xmlText = eregi_replace('>' . "[[:space:]]+" . '<' , '><', $xmlText); <---zde to píše chybu
		}

		$success = xml_parse($parser, $xmlText);

		$this->xmlDoc->errorCode = xml_get_error_code($parser);
		$this->xmlDoc->errorString = xml_error_string($this->xmlDoc->errorCode);

		xml_parser_free($parser);

		return $success;


píše mi to chybu

Deprecated: Function eregi_replace() is deprecated in ....

zkoušel jsem to nahradit i preg_replace i nic..dik za radu
panther
Profil
PanP:
ano, funkce ereg(i)_* jsou depracated, totéž se píše i v manuálu.

zkoušel jsem to nahradit i preg_replace i nic
jdeš správnou cestou, ale pouze vyměnit název funkce nestačí, více v manuálu.

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0