Upload On Hosting

Hi, I have a little question to ask: how do you upload your project on the web server?

Normally upload all the framework take some minutes, and I tried to zip everything and unzip later via php with

site.zip -> project



$zip = new ZipArchive;     

    $res = $zip->open('site.zip');

    if ($res === TRUE) {



	 echo 'Unzip was successful';

	 } else {

	 echo 'Unzip was not successful';



The problem is that on local machine it works but on the web server gives problems (can’t open the file), someone uses different solutions?

Hi, this seems to be a specific hosting problem that has nothing related to Yii

Check permissions files system on your server.

Try to open a file with native php code to see if it works