Re: Why create_element function always return false?

From: Date: Mon, 07 May 2007 23:09:05 +0000
Subject: Re: Why create_element function always return false?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-254523@lists.php.net to get a copy of this message
On Fri, May 4, 2007 9:44 pm, Victor wrote: > <?php > $doc = domxml_new_doc("1.0"); var_dump($doc); > $node = $doc->create_element("para"); var_dump($node); > $newnode = $doc->append_child($node); var_dump($newnode); > $newnode->set_attribute("align", "left"); > ?> > > I just run the example that is from php manual. But there is some > error Presumable http://php.net/domxml_new_doc documents what happens when there is an error, and how to deal with it. The PHP samples are just that: samples You have to add about 5 X as much code to have a robuts error-handling won't make your life miserable application... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some indie artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#254523) next »