PHP Installation
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsPHP RelatedPHP Installation

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old February 11th, 2006, 04:35 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
Enable DOM within PHP. Help me please!

I am running FC4 86x64. Apache 2.0 and PHP 5.0.4 works well. But when trying
<?php
$dom = new DOMDocument();
$xml = '<?xml version="1.0" encoding="UTF-8"?>
<node1>
<node2 />
</node1>
';
$dom->loadXML( $xml );
$nodeList = $dom->getElementsByTagName( 'node1' );
$node1 = $nodeList->item(0);
foreach ( $node1->childNodes as $node ) {
echo 'Class: ' . get_class( $node ) . "n";
}
?>
I get an error
PHP Fatal error: Class 'DOMDocument' not found in test1.php on line 2
Run phpinfo(), I see --disable-dom

I don't know how to enable DOM within PHP
Furthermore, when I try to run ./configure to fix the above problem as an advice from Google, it shows
bash: ./configure: No such file or directory

I am a beginner of Linux.
Anybody can help me with these problems? Thanks a lot!!!

chicken

Reply With Quote
  #2  
Old February 13th, 2006, 12:38 AM
lig's Avatar
lig lig is offline
"Forum Nazi"
Codewalkers Demi-God (4500 - 4999 posts)
 
Join Date: Apr 2007
Location: Jacksonville, Fl
Posts: 4,719 lig User rank is Private First Class (20 - 50 Reputation Level)lig User rank is Private First Class (20 - 50 Reputation Level) 
Time spent in forums: 4 Days 4 m 29 sec
Reputation Power: 6
RE: Enable DOM within PHP. Help me please!

Sounds like you need to rebuild the PHP. For linux - start here.

Reply With Quote
  #3  
Old March 18th, 2006, 10:28 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Enable DOM within PHP. Help me please!

I ran into this problem too and I was not satisfied with 'rebuild' answer. Turns out, Fedora 4 doesn't come with the php-xml rpm installed. you can find this rpm at http://rpm.pbone.net/index.php3/stat/4/idpl/2377446/com/php-xml-5.0.4-10.5.i386.rpm.html (my php rpm was version 5.0.4-10.5, so i used that php-xml version). I installed this using rpm -i php-xml... and the DOMDocument worked fine.

Reply With Quote
  #4  
Old April 2nd, 2006, 03:14 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: Enable DOM within PHP. Help me please!

Quote:
I ran into this problem too and I was not satisfied with 'rebuild' answer. Turns out, Fedora 4 doesn't come with the php-xml rpm installed. you can find this rpm at http://rpm.pbone.net/index.php3/stat/4/idpl/2377446/com/php-xml-5.0.4-10.5.i386.rpm.html (my php rpm was version 5.0.4-10.5, so i used that php-xml version). I installed this using rpm -i php-xml... and the DOMDocument worked fine.


Yep, that was exactly my problem, worked like a charm for me. Thx for the fix!

Reply With Quote
  #5  
Old April 12th, 2006, 12:21 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: RE: RE: Enable DOM within PHP. Help me please!


Quote:
Quote:
I ran into this problem too and I was not satisfied with 'rebuild' answer. Turns out, Fedora 4 doesn't come with the php-xml rpm installed. you can find this rpm at http://rpm.pbone.net/index.php3/stat/4/idpl/2377446/com/php-xml-5.0.4-10.5.i386.rpm.html (my php rpm was version 5.0.4-10.5, so i used that php-xml version). I installed this using rpm -i php-xml... and the DOMDocument worked fine.


Yep, that was exactly my problem, worked like a charm for me. Thx for the fix!


Reply With Quote
  #6  
Old February 12th, 2007, 08:23 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: Enable DOM within PHP. Help me please!

NOTE!
Do not forget to restart your webserver when using php pages in it.
eg use
/etc/init.d/httpd restart

Reply With Quote
  #7  
Old December 20th, 2007, 01:35 PM
kssiva_s kssiva_s is offline
Registered User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Dec 2007
Posts: 1 kssiva_s User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 32 sec
Reputation Power: 0
Thumbs up suberab....

I did the same for FC7. It's working fine. Great job.

Reply With Quote
Reply

Viewing: Codewalkers ForumsPHP RelatedPHP Installation > Enable DOM within PHP. Help me please!


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five &quot;checkpoints&quot; for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway