david19
9 months ago
866
6
Laravel

(PHP) After unzip redirect

Posted 9 months ago by david19

Hello Team. With this php, i will unzip my laravel folders. But after this, i will redirect to a other php file. The redirect doesnt work :(

<?php



$file = 'my-dev.zip'; //Dateiname entsprechend ´┐Żndern

$path = pathinfo(realpath($file), PATHINFO_DIRNAME);

$zip = new ZipArchive;
$res = $zip->open($file);
if ($res === TRUE) {
  $zip->extractTo($path);
  $zip->close();
  
header('/install.php');

} else {
  echo "Die Datei $file konnte nicht gefunden/ge&ouml;ffnet werden.";
}

exit;
?>

Please sign in or create an account to participate in this conversation.