You are here: Re: PHP to RSS « PHP Programming Language « IT news, forums, messages
Re: PHP to RSS

Posted by Curtis.DanielN on 09/19/06 20:05

You will need to set the header :
<?php
header("Content-Type: text/xml");
?>
the header has to be set in order to specify that you will be writing
xml.
When you want to print something like the ip do this:
<ipaddress><?php echo $_SESSION["IPADDRESS"];?></ipaddress>

After the header is set and you escape from php you'll just be creating
regular xml tags and printing using php when you need to....I hope that
helps

Daniel

 

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

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