Maybe the TextSerializer is the right one for you or you use the XHTMLSerializer with correct PIs encapsualting the PHP code.
Reinhard > -----Original Message----- > From: Sully [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 10, 2003 1:22 PM > To: [EMAIL PROTECTED] > Subject: HTML serializer to output php? > > > Hi, > > I'm generating my website using the CLI and I want to be able > to include > PHP code inside the generated pages. My problem is getting > the php tags > to output correctly in the final html. > > Has anyone solved this problem before? if so how did you do it? > > the different things I've tried all want to output <? instead of <? > > a simple example of what I want the final page to look like is: > > <html> > <body> > <?php echo "Hello World";?> > </body> > </html> > > I have a feeling I'll be needing to write myself a custom > serializer, if > so can somebody point me in the direction of a guide to writing a > serializer? I've been through carsten and matthew's book though they > seem to cover everything except how to write a serializer :( > > maybe the best way would be for me to have some <dynamic> > tags which are > transformed into <? ?> by the serializer? > > Thanks > Sully > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
