Activity Stream
48,167 MEMBERS
6868 ONLINE
besthostingforums On YouTube Subscribe to our Newsletter besthostingforums On Twitter besthostingforums On Facebook besthostingforums On facebook groups

Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16
  1.     
    #11
    Member
    Any one give me complete code ???

    As above one is only working if its a zip file.. if its mp4 its opening on browser no downloading occur

    I want like this :

    http://awrz.org/download

  2.   Sponsored Links

  3.     
    #12
    Member
    Website's:
    servode.com
    I am using the same method for mp3 files and it works just fine , so either you have some app installed that is forcing the files to open in the browser (like quick time , real time etc) or you are doing it wrong ...


  4.     
    #13
    Respected Member
    He said mp4 files. And the extension tells the browser how to handle it and use it.

    You would have to set the header to change the way it handles that file type.

    Normal header:
    'pdf' => 'application/pdf',
    'txt' => 'text/plain',
    'html' => 'text/html',
    'exe' => 'application/octet-stream',
    'zip' => 'application/zip',
    'doc' => 'application/msword',
    'xls' => 'application/vnd.ms-excel',
    'ppt' => 'application/vnd.ms-powerpoint',
    'gif' => 'image/gif',
    'png' => 'image/png',
    'jpeg' => 'image/jpg',
    'jpg' => 'image/jpg',
    'php' => 'text/plain'
    try setting your header to add mp4.

    Maybe like this:

    'mp4' => 'application/zip',
    Have not tried but it should work.

  5.     
    #14
    It begins...
    Use this for mp4:
    Code: 
    application/force-download

  6.     
    #15
    Member
    PHP Code: 
    <?php
    $file 
    'http://download.tuxfamily.org/notepadplus/6.1.3/npp.6.1.3.Installer.exe';
    header("Content-Type: application/force-download");
    @
    readfile($file);  
    ?>
    Here is the link to where i have pasted above code.. http://filmyfundaz.com/hidelink.php

    added header.. working..but

    file name is HideLink.php and also not resume supported.. while this link is resume supported..

    I have tried to hide.. http://download.tuxfamily.org/notepa....Installer.exe and want to download via http://filmyfundaz.com/hidelink.php this link.. any help

    Give me working code here

    thanks

  7.     
    #16
    Member
    If you want resumable links you have to parse the range headers along as well

    PHP Code: 
    header('Content-Disposition: attachment; filename="somefile.mp4"'); 

Page 2 of 2 FirstFirst 12

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [Help]Hide Comment Author Link?
    By aKaK in forum Wordpress
    Replies: 2
    Last Post: 14th Jun 2012, 08:24 PM
  2. Script to hide link referrer/make link anonymous
    By Darlos in forum Technical Help Desk Support
    Replies: 6
    Last Post: 20th May 2012, 06:19 PM
  3. Hide Real Download Link
    By gojmgo in forum Technical Help Desk Support
    Replies: 6
    Last Post: 13th May 2012, 07:43 AM
  4. Replies: 7
    Last Post: 28th Nov 2011, 06:02 PM
  5. Hide your kids, Hide your wife
    By ACE in forum General Discussion
    Replies: 7
    Last Post: 8th Aug 2010, 06:39 PM

Tags for this Thread

BE SOCIAL