mynamesleo Posted November 6, 2006 Share Posted November 6, 2006 Is there a way to execute a link to a download (e.g; http://site.com/program.zip ) within my php code?So the user clicks Submit on my page, then the download from the other site autmaticly begins, without them having to manualy go to the other site?Thanks Link to comment https://forums.phpfreaks.com/topic/26353-execute-download-link/ Share on other sites More sharing options...
just me and php Posted November 6, 2006 Share Posted November 6, 2006 Im New But I Have Used This That I Found On The Net.[code]<!-- ONE STEP TO INSTALL SUBMIT LINK: 1. Copy the coding into the BODY of your HTML document --><!-- STEP ONE: Paste this code into the BODY of your HTML document --><BODY><form name="theForm"><input type=text name="formInput"><a href="javascript:document.theForm.submit();">Submit</a></form><p><center><font face="arial, helvetica" size"-2">Free JavaScripts provided<br>by <a href="http://javascriptsource.com">The JavaScript Source</a></font></center><p><!-- Script Size: 0.39 KB -->[/code] Link to comment https://forums.phpfreaks.com/topic/26353-execute-download-link/#findComment-120515 Share on other sites More sharing options...
xtentic Posted November 6, 2006 Share Posted November 6, 2006 http://www.php.net/manual/en/function.fpassthru.phpAnd use headers for telling the browser you send a file...Hopefully this answers your question. Link to comment https://forums.phpfreaks.com/topic/26353-execute-download-link/#findComment-120528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.