Mombu the Php Forum sponsored links

Go Back   Mombu the Php Forum > Php > About DOM function in PHP
User Name
Password
REGISTER NOW! Mark Forums Read

sponsored links


Reply
 
1 21st March 20:38
kelvinpark86
External User
 
Posts: 1
Default About DOM function in PHP



I'm getting the following fatal error message:

*Fatal error*: Cannot instantiate non-existent class: domdo***ent in *
/home/hosting/infotechnow_com/htdocs/admin/inventory/catalog.php* on line *3
*
when running this code:

// Initialize new object for DOMDo***ent
$doc = new DOMDo***ent();

What's the problem?
**
  Reply With Quote


  sponsored links


2 21st March 20:38
tularis
External User
 
Posts: 1
Default About DOM function in PHP



You don't have the DOM extension installed (req. PHP5 in case you're not
running that either)... seems pretty obvious to me

http://www.php.net/dom
  Reply With Quote
3 21st March 20:38
tijnema
External User
 
Posts: 1
Default About DOM function in PHP


Which PHP version are you using?

from the manual[1]:
"The DOM extension allows you to operate on XML do***ents through the
DOM API with PHP 5.

For PHP 4, use DOM XML. "

Tijnema

[1] http://www.php.net/manual/en/ref.dom.php --
Vote for PHP Color Coding in Gmail! -> http://gpcc.tijnema.info
  Reply With Quote
4 21st March 20:38
quickshiftin
External User
 
Posts: 1
Default About DOM function in PHP


There is no DOM extension it is part of the PHP5 core; this from the DOM
do***antation <http://www.php.net/manual/en/ref.dom.php> in
the online handbook:

*Installation
There is no installation needed to use these functions; they are part of the
PHP core.*

This leads me to beleive OP is using PHP4. Kelvin, create a phpinfo()
script to determine
if youre running PHP4 or PHP5. -nathan
On 7/8/07, M. Sokolewicz <tularis@php.net> wrote:
  Reply With Quote
5 21st March 20:39
tularis
External User
 
Posts: 1
Default About DOM function in PHP


Actually, I'll have to correct you on that.

Everything in PHP is an extension, even the standard functions (which
are part of the 'standard' extension). Some extensions are "built-in"
while others are not (ie. standard, in PHP5, the DOM module is
built-in). However, this does not mean they are also enabled! There are
hosts which build php with --disable-dom, there are also hosts which
build php with --disable-libxml thus disabling all xml-related
functionality.

- Tul
  Reply With Quote
6 21st March 20:39
quickshiftin
External User
 
Posts: 1
Default About DOM function in PHP


My appologies M.
looking through the output of phpinfo() on a PHP5 install i have found a
line which says

dom
DOM/XML enabled

which would allude to an ability to disable it. also, i was looking at the
XSL extension and discovered

Installation
PHP 5 includes the XSL extension by default and can be enabled by adding the
argument --with-xsl[=DIR] to your configure line. DIR is the libxslt
installation directory.

so the XSL extension seems to work differently
than XML extension. both extensions are availble with the PHP5 core
but where DOM is enabled by default XSL must be ********ly enabled.
is there a portion of the do***entation that you are aware of that clearly
explains this? enabling and disabling core extensions..

thanks,

-nathan
  Reply With Quote
Reply


Thread Tools
Display Modes




Copyright © 2006 SmartyDevil.com - Dies Mies Jeschet Boenedoesef Douvema Enitemaus -
666