0
Pourquoi ne puis-je pas dissocier le fichier tar que j'ai créé via PharData?PharData créer tar/tgz - ne peut pas dissocier le tar?
try
{
$a = new PharData('archive.tar');
// ADD FILES TO archive.tar FILE
$a->addFile('manifest.json');
}
catch (Exception $e)
{
echo "Exception : " . $e;
}
//Now compress to tar.gz
file_put_contents('archive.tgz' , gzencode(file_get_contents('archive.tar')));
chmod('archive.tar', 0777);
unlink('archive.tar');
erreur,
Attention: unlink (archive.tar): Permission refusée en C ...
J'ai forcé le fichier de goudron à 777, mais il ne fonctionne toujours ne fonctionne pas.
Des idées?