GrumpyBum84 Posted September 3, 2013 Share Posted September 3, 2013 Hi All, Something that should be so simple here but I have struck a complete loss, I have tried and googled and tried but ever since CrazyDomains updated there interface I cannot get a simple download to work for users and it is annoying me. This has always worked before, if(isset($_REQUEST['downThis'])) { $downFile = 'Location: http://downloads.jaradsc.co.nz/' . $_REQUEST['downThis']; header($downFile); } However, since the upgrade I cannot get this to work. All I get is this I have tried all different header strings, getfile(), ob_start() etc but I cannot get this working. This example is here, http://downloads.jaradsc.co.nz/index.php?gipdb and at this time I have stripped it down to the most basic it can be trying to get this to work. Click submit (no other details required) to get the error. Any assistance will be great thank you. Jarad Quote Link to comment Share on other sites More sharing options...
fastsol Posted September 3, 2013 Share Posted September 3, 2013 Here is some info on how to force a file download properly. http://amecms.com/article/PHP-Force-File-Download-With-File-Whitelist Quote Link to comment Share on other sites More sharing options...
Solution GrumpyBum84 Posted September 9, 2013 Author Solution Share Posted September 9, 2013 Thanks for that, I have sorted this now. I did think it would be more simple but o well, it is working Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.