Location: PHPKode > scripts > Installation Automation > installation-automation/example.php
<?php
// Starting the session
session_start();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
    <head>
        <title>Installation Class Example</title>
    </head>
    <body>
        <p style="background-color: #cecece; margin: 0;">
            <small>(This content is not part of the form/stage... this content is part of the example main page)</small><br />
            Configuration used:<br />
            <ins><ul style="background-color: #cecece; margin: 0;">
                <li><a href="documentation.html#vcreate_global">$create_global</a> = true</li>
                <li><a href="documentation.html#use_sql">$use_sql</a> = false</li>
                <li><a href="documentation.html#force_errors">$force_errors</a> = false</li>
                <li><a href="documentation.html#vdebug">$debug</a> = false</li>
            </ul></ins>
            <ins><hr /></ins>
        </p>
<?php
// Requiring the installation class
require 'install.php';

// Setting the installation object to $inst
$inst = new install();

// Initiating the setup function (The one that includes the form).
$inst->setup();

// Checking if 'submit' is set
if(isset($_POST['submit']))
{
    // Advancing on to the next stage
    $inst->cont();
}
?>
    </body>
</html>
Return current item: Installation Automation