php - what i can do with error : permission denied in hosting service -


i registered in 1 of free hosting service have problem extracting files , in panel of host haven't facility extract files write script in php , got error : permission denied ! in idea can (like changing permission) or should linux administrator ??? (i can chmode change access permission on files , folders)

<?php $zip = new ziparchive; if ($zip->open('main.zip') === true) {     $zip->extractto('/myzip/');     $zip->close();     echo 'ok'; } else {     echo 'failed'; } ?> 

the code line $zip->extractto('/myzip/'); implies extracting against root directory of file system or assigned chroot. might not have permissions - try instead:

$zip->extractto('./myzip/'); 

Comments

Popular posts from this blog

javascript - Using jquery append to add option values into a select element not working -

Android soft keyboard reverts to default keyboard on orientation change -

Rendering JButton to get the JCheckBox behavior in a JTable by using images does not update my table -