PHP Classes
elePHPant
Icontem

File: sample2.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 10 years ago
Size: 604 bytes
 

Contents

Class file image Download
<?PHP
/*
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 ();
   
?>