
<topic>
    <title>PHP Integration Example</title>
    <shortdesc>This page contains sample code snippets to facilitate DITA Storm editor integration. Source code provided on free and unrestricted basis.</shortdesc>
    <body>
        <section>
            <title>In-place Editing Example (PHP)</title>
             Expected configuration: 
            <ul>
                <li>Web Server: Apache 2.2.4 as tested (earlier versions will do)</li>
                <li>Web Server extensions: PHP5 with XSL enabled </li>
                <li>Source code size: 4K</li>
                <li>Client: Internet Explorer, Firefox</li>
            </ul>
            <p>This example contains simple prototype of web application utilizing DITA Storm to provide in-place editing for simple set of topics. Entire application is very small, it essentially contains one PHP file (index.php - 3Kb) and DITA Storm editor. It uses file system to store DITA topics.</p>
            <p>See application <xref href='javascript:window.location.href=&apos;cms/index.php&apos;'>live here</xref></p>
            <p>File index.php contains both XML-to-HTML conversion and DITA Storm rendering logic switching between view and edit mode depending on the context:</p>
            <p>
                <image href='images/editinplace.png'/>
            </p>
            <p>Download source code here: <xref href='InlineEditingPHP.zip'>InlineEditingPHP.zip </xref></p>
            <p>Installation: Make sure PHP is configured to support XSL ( <xref href='http://www.php.net/manual/en/ref.xsl.php'>more...</xref>). Unpack contents of the archive into web server directory. Then open index.php file in your browser. </p>
        </section>
    </body>
</topic>
