Staggan Posted December 20, 2013 Share Posted December 20, 2013 Hello Is there any way I can append a reference to a file before it is downloaded..... So, if my file is called installer.exe can I append something to it like this... installer_1.exe ? This would allow my installer to know which partner referred that person to my installer... Or does anyone have any other suggestion, without having to make a custom installer for each referrer Thanks Quote Link to comment Share on other sites More sharing options...
MDCode Posted December 20, 2013 Share Posted December 20, 2013 (edited) If you're using the standard php download: <?php $referrer = 1; // Along with the others header("Content-Disposition: attachment; filename=installer_{$referrer}.exe"); ?> Edited December 20, 2013 by SocialCloud Quote Link to comment Share on other sites More sharing options...
Staggan Posted December 20, 2013 Author Share Posted December 20, 2013 Thanks... I would normally use a link... so I am unsure how the above works? Can you explain?Thanks Quote Link to comment Share on other sites More sharing options...
Solution Staggan Posted December 20, 2013 Author Solution Share Posted December 20, 2013 I have it working now.. I did not realize PHP could handle the downloads as opposed to just using a link.... Thanks for the help 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.