Results 11 to 16 of 16
-
30th May 2012, 02:55 PM #11OPMember
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
-
30th May 2012, 05:47 PM #12MemberWebsite's:
servode.comI 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 ...
-
30th May 2012, 05:58 PM #13Respected 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'
Maybe like this:
'mp4' => 'application/zip',
-
30th May 2012, 06:18 PM #14It begins...
Use this for mp4:
Code:application/force-download
-
1st Jun 2012, 07:26 AM #15OPMemberPHP 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);
?>
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
-
13th Jun 2012, 07:06 PM #16Member
If you want resumable links you have to parse the range headers along as well
PHP Code:header('Content-Disposition: attachment; filename="somefile.mp4"');
Sponsored Links
Thread Information
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)
Similar Threads
-
[Help]Hide Comment Author Link?
By aKaK in forum WordpressReplies: 2Last Post: 14th Jun 2012, 08:24 PM -
Script to hide link referrer/make link anonymous
By Darlos in forum Technical Help Desk SupportReplies: 6Last Post: 20th May 2012, 06:19 PM -
Hide Real Download Link
By gojmgo in forum Technical Help Desk SupportReplies: 6Last Post: 13th May 2012, 07:43 AM -
Why FileServe UPloadStation FileJungle hide exact download counts of every file ?
By MeHatesVN&ID in forum File Host DiscussionReplies: 7Last Post: 28th Nov 2011, 06:02 PM -
Hide your kids, Hide your wife
By ACE in forum General DiscussionReplies: 7Last Post: 8th Aug 2010, 06:39 PM
themaCreator - create posts from...
Version 3.18 released. Open older version (or...