Location: PHPKode > scripts > PHP 2 Install > php-2-install/sample2.php
<?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 ();
	
?>
Return current item: PHP 2 Install