indoglobal.com
Langsung ke: navigasi, cari

mod xsendfile

(Perbedaan revisi)
(←Membuat halaman berisi '{{DISPLAYTITLE:{{lcfirst:mod_xsendfile}}}} Server {{indoglobal}} mendukung penuh mod_xsendfile. Fungsinya adalah menyerahkan fungsi download file dari script ke web s...')
 

Revisi terkini pada 5 Oktober 2014 02.15


Server indoglobal.com mendukung penuh mod_xsendfile. Fungsinya adalah menyerahkan fungsi download file dari script ke web server.

Contoh dari situs mod_xsendfile:

<?php
...
if ($user->isLoggedIn())
{
    header("X-Sendfile: $path_to_somefile");
    header("Content-Type: application/octet-stream");
    header("Content-Disposition: attachment; filename=\"$somefile\"");
    exit;
}
?>
<h1>Permission denied</h1>
<p>Login first!</p>