PHP Classes

File: sample2.php

Recommend this page to a friend!
  Classes of helmut kemper  >  PHP 2 Install  >  sample2.php  >  Download  
File: sample2.php
Role: Example script
Content type: text/plain
Description: sample 2
Class: PHP 2 Install
Generate PHP script archives for site installation
Author: By
Last change:
Date: 11 years ago
Size: 604 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 (".");
$vgoInstall -> encodeTree ();