PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
SimpleXML has some problems with CDATA though, so you may want to use DOMDocument.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
Thanks, I am using SimpleXML to make bilingual site. All content is in one XML and in tags. Some tags have html tags inside them and some don't. Those that do have html tags do not process well without CDATA block, that's the whole problem.
Tends to be that you'll have more problems with CDATA blocks than if you encode the tags. If I remember correctly, to get SimpleXML to handle CDATAs you actually have to set some parse flags - not handled out-of-the-box.
If you use tags in <>s, without a CDATA block, then they're considered part of the XML. One way or another, if you want them as pure data something will have to be rewritten.
'Course, I don't know of anything that forces you to do this. SimpleXML can parse the <span> correctly - it's just a matter of you having the right code to get what you want.