Location: PHPKode > scripts > PHP 2 Install > php-2-install/sample.php
<?PHP
	
	include ("./php2install.class.php");
	
	$vgoInstall	 =  new php2install ();
	
	$vgoInstall	 -> setEncodeDbName ("DbName");
	$vgoInstall	 -> setEncodeDbHost ("127.0.0.1");
	$vgoInstall	 -> setEncodeDbUser ("DbUser");
	$vgoInstall	 -> setEncodeDbPassword ("DbPassword");
	
	$vgoInstall	 -> setDecodeDbPath ("./site_out/site.sql");
	
	$vgoInstall	 -> encodeDataBase ();
	
	$vgoInstall	 -> setEncodePath ("./site_in");
	
	$vgoInstall	 -> setDecodePath ("./site_out/site_install.php");
	
	$vgoInstall	 -> encodeTree ();
	
?>
Return current item: PHP 2 Install