Skip to main content
Published: May 22 2007, 1:53:00 PMUpdated: November 28 2020, 3:46:28 PM

Your phpinfo() results should be examined for initial configuration troubleshooting.

Detailed Description

PHP samples listed on the eBay Developers Program web site require various PHP XML libraries to be enabled in your PHP installation. Here’s how to check your PHP configuration.
PHP configuration information can be obtained at the command line with :

$ php -i
PHP Version => 5.1.2

System => Linux #3 SMP Mon Jan 1 03:55:34 CST 2007 i686
Build Date => Apr  3 2006 19:25:41

The information is verbose and somewhat difficult to read from the command line, so you may wish to obtain HTML formatted output by executing the following script via your web server :


As phpinfo() outputs sensitive information, it should be secured appropriately.

The following sections of phpinfo() output are especially important to verify XML parser support on Linux systems:

PHP Version 5.1.2
Scan this dir for additional .ini files : /etc/php.d
additional .ini files parsed : /etc/php.d/dom.ini, /etc/php.d/php.ini, /etc/php.d/xmlreader.ini, /etc/php.d/xmlwriter.ini, /etc/php.d/xsl.ini
extension_dir /usr/lib/php/modules
DOM/XML enabled
libXML support active
Simplexml support enabled
XML Support active
XMLReader enabled
XMLWriter enabled
XSL enabled

The above list is not comprehensive, and values will vary from system to system. However, if, for example, you are trying to use the DOM/XML parser, and the DOM/XML parser is not enabled, this will need to be rectified.

Additional resources

What is the best way to parse XML with PHP?

How well did this answer your question?
Answers others found helpful