DOMDocument not found on Windows dev enviroment
-
Hi,
I am rather new to PHP and WordPress development and I hoping someone can point me in the right direction. I self host my Web Site on a Linux box, but am undertaking the development on a Windows PC running Windows 10 with a WAMP installation.
In addition I write and test the PHP code in Visual Studio 17. The PHP libraries installed with VS2017 is at version 7.1.19, where the PHP with the WAMP is at version 7.2.4
I was developing a function to parse the Content using DOMDocument.loadHTML(); Within VS2017 everything is fine. When I load the function into the WAMP installation I am getting the error “Class ‘DOCDocument’ not found”.
Researching this on the internet seemed to suggest that on Windows I needed a “use \DOMDocument;” instruction. I added this to no effect.
I checked the list of php extention dlls in the VS2017 7.1/ext directory against those in the WAMP 7.2/ext and the only dll that is in 7.1 and not in 7.2 is php_xdebug.dll.
I have also checked the list of enabled extensions in WAMP 7.2, and whilst they are not all enabled, they only ones that are not enabled seem to be related to D/B, FTP or Test.
Can anyone tell me what I need to do get the DOMDocument class loaded on the WAMP?
- The topic ‘DOMDocument not found on Windows dev enviroment’ is closed to new replies.