Jump to content

Archived

This topic is now archived and is closed to further replies.

tomfmason

Question about php's xml functions.

Recommended Posts

I am not really sure if this is the proper place to post this or not. If any mods deem another forum more appropriate.. please move..

My question is not really regarding the functions themselves but the rather the probability of a users host supporting these functions.

I am currently working on redesigning my CMS to utilize php's XML functions and am wondering if this will be worth the time and effort. If only 10 to 20  percent of the hosts support these functions then I will not put much time or effort into XML.


Thanks,
Tom

Share this post


Link to post
Share on other sites
SimpleXML is 'default' and frankly, if your host doesn't have them, or atleast willing to enable them (free of charge) they are not worthy hosts..

Share this post


Link to post
Share on other sites
I guess that did not realy answer my question.

simpleXML functions are only available since php 5+.

I guess now my question would be how many hosts support php 5.

Share this post


Link to post
Share on other sites
I am thinking that I will use domxml for > php5 and simple xml for the newer versions.

Thanks,
Tom

Share this post


Link to post
Share on other sites
Quite a number. A lot offer the choice of either 4 or 5.

Share this post


Link to post
Share on other sites
Create a new file, in the first line of this file put this:

AddType application/x-httpd-php5 .php

Save the file as ".htaccess" without the quotes, upload it to the directory that your script is in.

You now have PHP 5.1.4 :) Enjoy SimpleXML.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.