i need help in php and xml writing

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!

Moderator: General Moderators

Post Reply
hassanaly
Forum Newbie
Posts: 1
Joined: Mon Feb 01, 2010 8:22 am

i need help in php and xml writing

Post by hassanaly »

hello
i need to feed flash by data in spadific form

like this <title><![CDATA[NEWS 4]]></title>

i write this line
$title = $doc->createElement("<![CDATA[NEWS 4]]>");
I got this error


Fatal error: Uncaught exception 'DOMException' with message 'Invalid Character Error' in G:\AppServ\www\ROTATOEGYPT\Untitled-4.php:36 Stack trace: #0 G:\AppServ\www\ROTATOEGYPT\Untitled-4.php(36): DOMDocument->createElement('<![CDATA[NEWS 4...') #1 {main} thrown in G:\AppServ\www\ROTATOEGYPT\Untitled-4.php on line 36

what can i do?
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: i need help in php and xml writing

Post by AbraCadaver »

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.
Post Reply