Oli Filth wrote:
[color=blue]
> Quadrupel wrote:
>[color=green]
>>How can I use a php-variable in an xml file?
>>
>>In this case I need $_SERVER['PHP_SELF'].
>>[/color]
>
>
> echo $_SERVER['PHP_SELF'];
>
> ? What else do you need?
>[/color]
Quadrupel wrote:[color=blue]
> Oli Filth wrote:
>[color=green]
> > Quadrupel wrote:
> >[color=darkred]
> >>How can I use a php-variable in an xml file?
> >>
> >>In this case I need $_SERVER['PHP_SELF'].
> >>[/color]
> >
> >
> > echo $_SERVER['PHP_SELF'];
> >
> > ? What else do you need?
> >[/color]
>
> There is no echo in xml.
>[/color]
Well yes, and there's no PHP in XML either. If you want dynamic
information in an XML file, you have to create the file dynamically
using PHP (or ASP, etc. etc.)
Janwillem Borleffs wrote:
[color=blue]
> Quadrupel wrote:
>[color=green]
>>How can I use a php-variable in an xml file?
>>
>>In this case I need $_SERVER['PHP_SELF'].[/color]
>
>
> When you mean during an XSLT transformation, you can pass external variables
> to the stylesheet and catch them there through <xsl:param /> elements.
>
> For PHP4, see:
>
> http://www.php.net/xslt_process
>
> For PHP5, see:
>
> http://www.php.net/manual/en/functio...-parameter.php
>
>
> JW[/color]
Thank you for the links.
The problem is the output should be xml files.
Maybe I'll create them with fopen.
Comment