From: ericzen (ericzen@ez-net.com)
Date: Tue Dec 10 2002 - 13:47:42 EST
On 2002.12.10 08:59 F J Franklin wrote:
> As I explained when I introduced the feature, it can be used by anyone
> willing to add three PHP scripts to their website.
>
> A lot of websites use PHP simply to create a standard page "look & feel",
> so have a PHP script for the header, another for the footer, and so on.
> Whether this is good practice I leave for others to argue about.
>
> AbiWord's website does this. In fact most of the pages in CVS bare scant
> resemblance to HTML (let alone XHTML), being something along the lines of
>
> <?
> include('header.php');
> ?>
> <div>
> <p>
> ...
>
> I thought it would be nice to be able to maintain such webpages in
> AbiWord, but that would require a webpage format which was not only
> XML-friendly but also PHP-friendly.
>
> My solution is to embed the PHP in XHTML like so:
>
> <html>
> <head>
> ...
> <?php include('x-header.php'); ?>
> </head>
> <body>
> <?php include('x-page-begin.php'); ?>
> ...
> <?php include('x-page-end.php'); ?>
> </body>
> </html>
>
> something like that, anyway. There is nothing AbiWord-specific about those
> three PHP files. Websites can have their own custom versions of these. I
> have made some for Abi's website.
>
> A lot more hidden? Maybe I should say not "AbiWord Web Document" but
> rather "XHTML with PHP additions suitable for, e.g., the AbiWord WebSite"?
>
> Who says *they* are interested? I just thought that if I made the option
> available then they might use it - whoever they are.
>
> Regards, Frank
>
Aww, and I thought it was all just for li'l ol' me ;0)
/me dashes back to #119 before they figure out he's back...
-Zen
This archive was generated by hypermail 2.1.4 : Tue Dec 10 2002 - 13:49:27 EST