Ich möchte auf eine Download-EXE-Datei umleiten. Im Internet Explorer fragt mich der Browser automatisch, ob ich eine Datei ausführen oder speichern möchte. In Chrome bekommt nur das Speichern als Datei. Wie kann ich in Chrome das gleiche machen wie in IE?HTML Redirect, um exe-Datei herunterladen
Danke
<!DOCTYPE html>
<html>
<head>
<?php
$file_url = 'file://suas105/deployment/PnS_Token_WIPG-300H/WIPG-300H/WIPG-300H.exe';
header('Content-Type: application/octet-stream');
header("Content-Transfer-Encoding: Binary");
header("Location: $url");
header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\"");
readfile($file_url);
?>
<!--<meta charset="UTF-8">
<meta http-equiv="refresh" content="1; url=file://suas105/deployment/PnS_Token_WIPG-300H/WIPG-300H/WIPG-300H.exe" />-->
<title>Page redirection</title>
</head>
<body>
<!--If you are not redirected automatically, follow the <a href='file://suas105/deployment/PnS_Token_WIPG-300H/WIPG-300H/WIPG-300H.exe' download>link to example</a>-->
</body>
</html>
Ich glaube nicht, dass Sie können, ich bin mir ziemlich sicher, dass Chrome Sie exe-Dateien aus dem Browser nicht ausführen lassen – Epodax