Bluehost.com Web Hosting $6.95

XML and PHP

This is a discussion on XML and PHP within the alt.comp.lang.php forums, part of the PHP Programming Forums category; Can anybody tell me of a good XML and php tutorial? I know how to make an xml file. I ...


Go Back   Usenet Forums > PHP Programming Forums > alt.comp.lang.php

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-20-2005
houghi
 
Posts: n/a
Default XML and PHP

Can anybody tell me of a good XML and php tutorial? I know how to make
an xml file. I just am unable, at this moment, how to read that into
php.

I am able to get the data with arrays. XML however will be a much wiser
choise for me for several reasons.

Some links to websites with tutorials and example will be greatly
apriciated as well as extra tips concerning the matter.
--
houghi Please do not toppost http://houghi.org
You are about to enter another dimension, a dimension not only of
sight and sound but of mind. A journey into a wondrous land of
imagination. Next stop, Usenet
Reply With Quote
  #2 (permalink)  
Old 12-20-2005
Oli Filth
 
Posts: n/a
Default Re: XML and PHP

houghi wrote:
> Can anybody tell me of a good XML and php tutorial? I know how to make
> an xml file. I just am unable, at this moment, how to read that into
> php.
>
> I am able to get the data with arrays. XML however will be a much wiser
> choise for me for several reasons.
>
> Some links to websites with tutorials and example will be greatly
> apriciated as well as extra tips concerning the matter.


The PHP manual has some useful examples of how to use XML
functionality:
http://www.php.net/manual/en/ref.xml.php

--
Oli

Reply With Quote
  #3 (permalink)  
Old 12-20-2005
Manuel Lemos
 
Posts: n/a
Default Re: XML and PHP

Hello,

on 12/20/2005 09:47 AM houghi said the following:
> Can anybody tell me of a good XML and php tutorial? I know how to make
> an xml file. I just am unable, at this moment, how to read that into
> php.
>
> I am able to get the data with arrays. XML however will be a much wiser
> choise for me for several reasons.
>
> Some links to websites with tutorials and example will be greatly
> apriciated as well as extra tips concerning the matter.


You may try this PHP class that can be used to write XML documents
without any special extensions installed:

http://www.phpclasses.org/xmlwriter


--

Regards,
Manuel Lemos

Metastorage - Data object relational mapping layer generator
http://www.metastorage.net/

PHP Classes - Free ready to use OOP components written in PHP
http://www.phpclasses.org/
Reply With Quote
  #4 (permalink)  
Old 12-20-2005
houghi
 
Posts: n/a
Default Re: XML and PHP

Oli Filth wrote:
> The PHP manual has some useful examples of how to use XML
> functionality:
> http://www.php.net/manual/en/ref.xml.php


Thanks. If anybody has more tutorials, please let me know. Sometimes one
tutorial explains things a bit easier for me then a plain manual. It
already is a good start however.

--
houghi Please do not toppost http://houghi.org
You are about to enter another dimension, a dimension not only of
sight and sound but of mind. A journey into a wondrous land of
imagination. Next stop, Usenet
Reply With Quote
  #5 (permalink)  
Old 12-20-2005
houghi
 
Posts: n/a
Default Re: XML and PHP

Manuel Lemos wrote:
> You may try this PHP class that can be used to write XML documents
> without any special extensions installed:
>
> http://www.phpclasses.org/xmlwriter


I will look into it. Thanks.

--
houghi Please do not toppost http://houghi.org
You are about to enter another dimension, a dimension not only of
sight and sound but of mind. A journey into a wondrous land of
imagination. Next stop, Usenet
Reply With Quote
  #6 (permalink)  
Old 12-21-2005
cross at php net
 
Posts: n/a
Default Re: XML and PHP

The PEAR project also has a bunch of XML extensions
http://pear/php.net

but a note, a lot of the stuff involving xml & php depend on what
version of php you are using.

In PHP 5, xml support is built in through SimpleXML, etc.
In PHP 4, support is weak or only available through non-base modules

Reply With Quote
  #7 (permalink)  
Old 12-21-2005
Oli Filth
 
Posts: n/a
Default Re: XML and PHP

cross at php net said the following on 20/12/2005 23:43:
> but a note, a lot of the stuff involving xml & php depend on what
> version of php you are using.
>
> In PHP 5, xml support is built in through SimpleXML, etc.
> In PHP 4, support is weak or only available through non-base modules


Umm, if I'm not mistaken, isn't the XML Parser module available in PHP 4???

Which is an event-driven parser, rather than a DOM-based parser (i.e.
SimpleXML), so more flexible, and also more appropriate for large XML files?

To say that that's "weak support" is somewhat awry!


--
Oli
Reply With Quote
  #8 (permalink)  
Old 12-21-2005
houghi
 
Posts: n/a
Default Re: XML and PHP

cross at php net wrote:
> The PEAR project also has a bunch of XML extensions
> http://pear/php.net


What now?

> but a note, a lot of the stuff involving xml & php depend on what
> version of php you are using.
>
> In PHP 5, xml support is built in through SimpleXML, etc.
> In PHP 4, support is weak or only available through non-base modules


Thanks for your concern. It works on my own machine and the remote one I
will be using. As a toke of apreciation I want to offer you this:
http://www.safalra.com/special/googlegroupsreply/

--
houghi Please do not toppost http://houghi.org
You are about to enter another dimension, a dimension not only of
sight and sound but of mind. A journey into a wondrous land of
imagination. Next stop, Usenet
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:23 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0