File manager - Edit - /home/autoph/public_html/connectv1/resources/views/asa_v1/download.php
Back
<?php // Define the path to the file $filePath = '/../../dist/AUTOHUB_CONNECT-release.apk'; // Replace with your actual file path // Check if the file exists if (!file_exists($filePath)) { // If the file does not exist, show an error message header("HTTP/1.0 404 Not Found"); echo "File not found!"; exit; } // Get the file name $fileName = basename($filePath); // Set headers to force download header('Content-Description: File Transfer'); header('Content-Type: application/vnd.android.package-archive'); // MIME type for APK files header('Content-Disposition: attachment; filename="' . $fileName . '"'); header('Content-Transfer-Encoding: binary'); header('Expires: 0'); header('Cache-Control: must-revalidate'); header('Pragma: public'); header('Content-Length: ' . filesize($filePath)); // Clear output buffer and flush ob_clean(); flush(); // Read the file and send it to the user readfile($filePath); exit; ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings