Re: ? PHP in XML document

From: Date: Mon, 15 Aug 2005 07:27:14 +0000
Subject: Re: ? PHP in XML document
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-220625@lists.php.net to get a copy of this message
Labunski wrote: >Hello, > >Is it possible to write some PHP code lines in the XML document? > >e.g. I want to add <?php require_once("read_database.php"); ?> to the xml >document, but >I don't know the right syntax to do this. > >Btw, I need this, cause I'm trying to make CMS system for Flash page. > The easiest way to do this in Flash is to call a PHP script instead of an XML file in Flash, that way you can render the XML document however you want with PHP and load data directly from the database into XML or whatever you wish. So, replace the XML filename for your PHP script, and that way you should be able to add querystrings and whatnot too. Regards, Torgny

« previous php.general (#220625) next »