You are here: Re: PHP XML « All PHP « IT news, forums, messages
Re: PHP XML

Posted by Andy Hassall on 12/03/05 15:53

On Sat, 3 Dec 2005 13:25:03 -0000, Homechoice <jde@tdbcomputing.com> wrote:

>This is going to sound stupid but any healp will seriously assist me in
>NOT have a nervous breakdown.
>
>I wish to write a PHP script that will receive a paramater and return an
>XML object.
>
>Say I have a mySQL table of customers with a field Town. My remote
>program will invoke the page with a URL variable of say town. The mySQL
>query will be run - no problems yet - and then I wish the page to return
>an XML object to the calling page.

What is an "XML object"? You can have the script output XML, but even then you
need to define what structure the XML has - XML is just a format, you have to
be more specific.

The basics would be as simple as:

<?php
header('Content-type: text/xml');
print '<?xml version="1.0" encoding="iso-8859-1">' . "\n";
print '<tag></tag>';
?>
--
Andy Hassall :: andy@andyh.co.uk :: http://www.andyh.co.uk
http://www.andyhsoftware.co.uk/space :: disk and FTP usage analysis tool

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация