Help for this page

Select Code to Download


  1. or download this
    print "X-Sendfile: C:\\Path\\to\\file\\video\\";
    print "Content-Type:application/octet-stream; name=\"File-12.mp4\"\r\n
    +";
    print "Content-Disposition: attachment; filename=\"File-12.mp4\"\r\n\n
    +";
    print "\n\n";
    exit;
    
  2. or download this
    <?php
    ...
    ...
    ?>
    <h1>Permission denied</h1>
    <p>Login first!</p>
    
  3. or download this
    # enable xsendfile
    XSendFile On
    XSendFilePath C:/Path/To/Files/
    
  4. or download this
    my $file = "C:/Patch to file/FiletoSend.mp4";
    my $filesize = -s $file;
    ...
    
    exit;