File: sample3.php

Recommend this page to a friend!
  Classes of helmut kemper  >  PHP 2 Install  >  sample3.php  >  Download  
File: sample3.php
Role: Example script
Content type: text/plain
Description: sample 3
Class: PHP 2 Install
Generate PHP script archives for site installation
Author: By
Last change:
Date: 15 years ago
Size: 1,113 bytes


Class file image Download
This example generates an installer for a site in the directory dir_name


Este exemplo gera um instalador para um site no diretório dir_name
include ("./php2install.class.php");
$vgoInstall = new php2install ();
$vgoInstall -> setEncodePath ("./dir_name");
$vgoInstall -> setDecodePath ("./path/out_file.php");
// It indicates that the site will be generated in the same directory
    // Indica que o site sera gerado no mesmo diretório
$vgoInstall -> setDecodeNewPath (".");
// This line generates a form to substitute <!--{dbname}-->, <!--{user}-->, <!--{password}-->, <!--{host}-->, for the typed values
    // Este campo gera um formulário para substituir <!--{dbname}-->, <!--{user}-->, <!--{password}-->, <!--{host}-->, pelos valores digitados
$vgoInstall -> setReplaceForm (array ("Db name:", "User:", "Password", "Host"), array ("dbname", "user", "password", "host"), array ("Enter db name", "Enter user name", "Enter password", "Enter host<br>Example:"));
$vgoInstall -> encodeTree ();

For more information send a message to info at phpclasses dot org.