Warrior Forum - The #1 Digital Marketing Forum & Marketplace

Warrior Forum - The #1 Digital Marketing Forum & Marketplace (https://www.warriorforum.com/)
-   Programming (https://www.warriorforum.com/programming/)
-   -   Create Installer Tutorial (https://www.warriorforum.com/programming/185922-create-installer-tutorial.html)

veeco 3rd March 2010 10:27 PM

Create Installer Tutorial
 
Hello, i've been googling to find tutorial about create installer script, my idea is to create a zip file, upload to server... and in the server the zip file will be unzip/extract and put it on appropriate folder.

The same approach as joomla did..

but the keyword "create installer php" or something like this is too bias because google return installer tutorial like xampp, wammp..etc..

if you can help... please let me know the reference...

lisag 4th March 2010 10:32 PM

Re: Create Installer Tutorial
 
Quote:

Originally Posted by veeco (Post 1822264)
Hello, i've been googling to find tutorial about create installer script, my idea is to create a zip file, upload to server... and in the server the zip file will be unzip/extract and put it on appropriate folder.

The same approach as joomla did..

but the keyword "create installer php" or something like this is too bias because google return installer tutorial like xampp, wammp..etc..

if you can help... please let me know the reference...

Try this. You may need to adjust it to suit your exact situation.
Code:

<?php

function unzip(, , ) // name of zip file, source dir and target dir
{
 copy( . "/" . ,  . "/" . );
 chdir();
 shell_exec("unzip ");
}

?>



All times are GMT -6. The time now is 04:55 PM.