NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
DOMDocument::loadXML and debugger *solved*


Joined: 20 Sep 2006
Posts: 2
Reply with quote
Hi, I am trying out the PHPed IDE debugger for writing some php code to parse XML. I am trying to use DOMDocument::loadXML($xxxx)

When I first stated, upon stepping into the line:

$dom = DOMDocument::loadXML($payload);

I got the error: Undefined class name ‘domdocument’. I did some reading and found I needed to add the extensions to the php.ini, so I uncommented the line:

extension=php_domxml.dll

within the php.ini file. Now I get the error:

Call to undefined function: loadxml()

When I step inot the same line.

The code works fine when not running in the debugger, so it appears that I am still missing something. Is there another extension I need to load? I tried uncommenting all the default extensions listed in the php.ini and still got the same error. Any help is much appreciated!

BTW
I am running a trial version of PhpED which installed PHP 4.4.3
I am runnig XP Pro

Thanks again,
Nick
View user's profileFind all posts by yovanoffSend private message


Joined: 20 Sep 2006
Posts: 2
Reply with quote
Resolved. I was using the default PHP 4 association with .php extensions and DOMDocument seems to have issues with 4. I switched the association of .php to PHP5 and it seems to be working now. Thanks to Yury at NuSphere for the great and quick help!!!
View user's profileFind all posts by yovanoffSend private message
DOMDocument::loadXML and debugger *solved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic