domxml not working in VS.PHP

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
mcmcom
Forum Newbie
Posts: 14
Joined: Thu Jan 31, 2008 7:23 am

domxml not working in VS.PHP

Post by mcmcom »

hi all,

i am using VS.PHP which is an add-in for Visual Studio 2005 and allows me to author and debug php applications within a windows machine. Its been working okay but im having problems accessing domxml stuff.

This block

Code: Select all

 
$resultsDoc = domxml_new_doc("1.0");
results = $resultsDoc->create_element("results");   
return $resultsDoc; 
 
Errors out with "domxml_new_doc" undefined. (or speificall Call to undefined function domxml_new_doc).
now im sure this is because i either dont have the domxml module loaded properly (if at all). I have added it to my modules section in my solution explorer but do i need to add an include or any kind of statement in the class that im using it from?

Essentially this VS.PHP Addin adds a PHP MODULES section to my solution, i can add all kinds of available modules that came with it. "domxml" is one i added but im getting this error still

any advice or guidance is appreciated.
tia,
mcm
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: domxml not working in VS.PHP

Post by Christopher »

DOM XML is no longer included in PHP5, but can be added. Check that it is actually installed.
(#10850)
mcmcom
Forum Newbie
Posts: 14
Joined: Thu Jan 31, 2008 7:23 am

Re: domxml not working in VS.PHP

Post by mcmcom »

im actually using php4 i tried adding

extension=php_domxml.dll (which is the correct name for this assembly)
in php.ini but it seems with this VS.PHP tool it re-creates the php.ini file each time you debug, so it gets removed. any ideas?

thanks,
mcm
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: domxml not working in VS.PHP

Post by Christopher »

I don't know VS.PHP. Anyone else use it?
(#10850)
Post Reply