homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Php & xml
whats are they like to work with?

 2:46 am on May 20, 2002 (gmt 0)

The more I read here about PHP the more interested I become.

I've got a new project to start and I'm thinking of building it with PHP with an XML based catalogue, partly to learn a bit more about both.

How have you found the integration? I'm not going to have an awful lot of time to pick it up (after hours project) so I'm curious as to how steep the learning curve is. I have a fair idea of the basics of XML.




 10:01 am on May 20, 2002 (gmt 0)

also, I'd be interested to know what kind of uses people have have put xml to on their PHP driven sites - are there advantages from a point of view of scalability and site management?


 12:09 pm on May 20, 2002 (gmt 0)

I've not tried it but am in the process of evaluating it for a project. Here is the use I think I'll get out of it.

If all of my 'articles' are strored as xml using the 'docbook' dtd then I can use xslt to either display them as html for the site. Or.. as text for email purposes.

I can see also uses for handheld devices.

A little decision making logic to choose the xslt sheet and away you go!



 1:23 pm on May 20, 2002 (gmt 0)

Hey ppg,
I'm thinking about the combination of PHP and XHTML for a site I'm working on now.

The advantages I believe (believe being the operative word) are lighter pages, easier to read and more relative information for the spiders to crawl combined with dynamic page creation.

I could be totally out to lunch here so I have a bit more research to do.


 1:32 pm on May 20, 2002 (gmt 0)

Well, if you choose to go the full whack with xhtml 1.1 and css only layout you can get your pages real light indeed.

My new business site weighs in at under 5k and uses xhtml 1.1 and php. Okay, it's light on images as I'm not much of an artist but it looks pretty reasonalble and the fact it loads in under a second on 56k modem is largely due to the spec.



 11:46 pm on May 20, 2002 (gmt 0)

Hi Lorax, yes, I'm thinking about XHTML too.

Thats sounds like it could be really useful Nick. its nice to hear an example of a real world use.


 12:03 am on May 21, 2002 (gmt 0)

>decision making logic to choose the xslt sheet

Any hints on what xslt is and how it's used?


 12:05 am on May 21, 2002 (gmt 0)

Hi ppg,
Well, since my last post here I've very nearly finished converting my project web site over to XHTML. The template validates for XHTML just fine. A few sticking points to handle (something funky going on with a table cell) but for the most part it was easy. Of course now I have make sure it validates for CSS2.

So - dig in!


 6:03 am on May 21, 2002 (gmt 0)

Any hints on what xslt is and how it's used?

eXtensible Stylesheet Language Transformations.

Here ya go: [w3.org ]



 8:13 am on May 21, 2002 (gmt 0)

Handy link Nick, thanks. Theres some interesting stuff on Sablotron there too, which looks like its the PHP way of doing things with XML and XSLT.

Any idea how well XSLT is supported with hosting companies? One of the main reasons I'm thinking of learning to do XML stuff with PHP is that so many hosting companies seem to support PHP.


 9:24 am on May 21, 2002 (gmt 0)

Not sure, I know mine supports some xml related stuff but not Sablotron. Guess you gotta look around and ask a few questions...



 10:29 am on May 21, 2002 (gmt 0)

ok. Thanks Nick, you've been a big help :)

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved