473,466 Members | 1,503 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

simplexml_load_file in php 4.x.x

Hi All,

I am using simplexml_load_file function to parse xml files on
my localhost. But the server hosting my domain has php 4.x.x. so i
want to use php 4.x.x instead,
Is there a way to install simplexml_load_file function on php
4, if yes PLEASE let me know, else PLEASE suggest a function to parse
xml files easily......

Thank u....
Jul 17 '08 #1
2 6473
Harsha wrote:
Hi All,

I am using simplexml_load_file function to parse xml files on
my localhost. But the server hosting my domain has php 4.x.x. so i
want to use php 4.x.x instead,
Is there a way to install simplexml_load_file function on php
4, if yes PLEASE let me know, else PLEASE suggest a function to parse
xml files easily......

Thank u....
SimpleXML as provided with PHP5 is not available for PHP4. Back than
most people used Expat which is still available but is considered to be
more complex.

Now, a quick Google search presented a SimpleXML implementation for PHP4
<http://www.phpclasses.org/browse/package/4484.html>. I don't know how
good it is, and if it works exactly the same but it might be worth trying.

Oh, and you might want to check if your host does not provide PHP5. For
example, one of the hosting companies I work with still configure PHP4
as default, but in the control panel I can switch between PHP4 and PHP5.

- Jensen
Jul 17 '08 #2
..oO(Harsha)
I am using simplexml_load_file function to parse xml files on
my localhost. But the server hosting my domain has php 4.x.x. so i
want to use php 4.x.x instead,
You should _really_ consider an upgrade or to change the host. PHP 4
has already reached its end of lifetime and all support for it will be
stopped in about 3 weeks.

Micha
Jul 17 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Rainer Mohr | last post by:
Hi, I´m having some problems with simplexml_load_file() and cant find any sollution anywhere. Say, we have the following file: ---file.xml--- <UNITS>Metric</UNITS> <UNITS>another</UNITS>...
2
by: mandric | last post by:
Hello, Can someone please enlighten me on how to preserve the <!]> element when parsing an xml file or string with simplexml. I'm using libxml 2.6.16 and php 5.1.4. I tried a few variations,...
1
by: kencana | last post by:
Hi all, I was wondering why I always get "failed to open stream: HTTP request failed!" error in either loading a normal or xml file. i don't understand why i can't get the whole result. the result...
2
by: doc1355 | last post by:
I have a XML file that looks like this: <?xml version="1.0" encoding="UTF-8"?> <products> <product> <sku>10001</sku> <qty>3</qty> <price>822.51</price> </product> <product>...
7
by: alexus | last post by:
i have test.xml file that i pull from someone, and when i try to load it up into php I get this mbp:cj alexus$ php api.php SimpleXMLElement Object ( ) mbp:cj alexus$
2
jamwil
by: jamwil | last post by:
What's up guys. I'm having some issues... I've created a method as part of my lifestreaming class which takes an rss feed, and puts the data into a database... It's fairly simple... Check...
7
by: flydev | last post by:
Hi, I am having issues using simplexml. I have generated an XML file using PHP (link), and I am trying to load it into a simplexml object using: $xml =...
1
by: SnakesRule | last post by:
I'm trying to pull data from remote xml files to load the database of a library. My sources are www.amazon.com and www.ISBNdb.com. But when I try to search and read the xml files, I get this error: ...
4
by: newzdog | last post by:
Hi, I have a problem parsing an rss feed using simplexml_load_file - this is strange as i have used the same code to parse literally 1000s of different rss feeds in the past, and even stranger in...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.