Re: Re: Using DOM object, how?
| From: | Ken Tozier | Date: | Mon, 19 Sep 2005 10:00:13 +0000 |
| Subject: | Re: Re: Using DOM object, how? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-222640@lists.php.net to get a copy of this message | ||
Next question:
I don't see any obvious DOM method for including scripts or css links like "<script language='text/javascript' src='bobo.js'>". Do you have to put them in some other type of node like a processing instruction or a comment?
On Sep 19, 2005, at 5:22 AM, Ken Tozier wrote:
The first line of that page - " The DOM extension is the replacement for the DOM XML extension from PHP 4." makes me suspect that it may be a PHP 5 feature, and sure enough, a look in the changelog confirms this. php.net/ChangeLog-5.php#5.0.0b1 So if you are using php < 5.0, that would explain your error.That was it. (php 4.3.1 something) Just downloaded 5.0.5 and it works fine now. Thanks. --PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php