PHP DOM API

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
barry_normal
Forum Newbie
Posts: 21
Joined: Sun Jul 02, 2006 5:02 am

PHP DOM API

Post by barry_normal »

Hello, and apologies in advance for probably putting this question in the wrong place.

I want to use PHP's XML-parsing capabilities on my shared-server hosting at media temple. The problem I have is: How do I enable/install/configure PHP to be able too use the DOM API? Is it something to do with libxml2?

Support at MT just said I probably needed to upgrade or something (their words) so were effectively no help at all.

If anyone has any ideas or can point me to a tutorial on this I'd be immensely grateful.

All the best
Barry
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

XML Parsing should be enabled by default. At least that is what the PHP manual says in the Installation section.
barry_normal
Forum Newbie
Posts: 21
Joined: Sun Jul 02, 2006 5:02 am

Post by barry_normal »

Thanks Everah,

For some reason it's magically started working now. Thanks for your help though.

B
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

I find a lot of things magically start working for me after I post here :D . Something to consider... when working with XML stuff, the location of the XML, is it on the Internet or local? I was having a problem with an XML feed I was reading once. It wouldn't work no matter what I did. Then I find out the problem. I was testing it behind a proxy server that would not allow me to get it. When I changed machines, everything fell into place.
barry_normal
Forum Newbie
Posts: 21
Joined: Sun Jul 02, 2006 5:02 am

Post by barry_normal »

Hi Everah,

I'm trying to build a little feed reader so it needs to feret the information out from whichever sites you choose and key words you enter. Much of that I then want to automate dependent on geography and what I want the news to look like.

php is a real godsend because I thought I was going to have to upgrade my whole hosting and do the thing in JSP. Still having a few teething toubles though so expect the odd stupid question!

Cheers
B
User avatar
RobertGonzalez
Site Administrator
Posts: 14293
Joined: Tue Sep 09, 2003 6:04 pm
Location: Fremont, CA, USA

Post by RobertGonzalez »

Dude, hang around here long enough and you will see the same, beginner questions. Your question was not nearly as beginner as some others. Keep plugging along. You are in for the ride of your life.
Post Reply