Jump to content

Sakoiren

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Everything posted by Sakoiren

  1. Here's the full code related to the function: if(isset($_GET['d'])) { $dl_id = $_GET['d']; header('Content-Type: application-download'); header('Content-Disposition: attachment; filename=' .basename($dl_id)); readfile($dl_id); } $generate_list = "SELECT repfile FROM downloads where id = $file_id"; $generate_list_result = mysql_query($generate_list) or die(mysql_error()); while ($generate_list_Array = mysql_fetch_array($generate_list_result)) { $file = $generate_list_Array['repfile']; echo "<a href='info.php?d=$file'>Download</a><br />" }
  2. Hello everyone! I'm somewhat of a newb in this so anyways I have this script and I try to force a browser to download a file when someone hits a download button. here is what I'm trying: header('Content-Type: application-download'); header('Content-Disposition: attachment; filename=' .basename($dl_id)); readfile($dl_id); It seems to work in Chrome, Firefox, but it doesn't work in IE Any suggestions?
  3. Hello to everyone! Dunno how to explain what I'm trying to do, but I'll try my best and if anyone has any idea of what I'm looking for and could point me to some tutorials or something id appreciate it! Pretty much I'll have a website where users upload some stuff into database and then I want to offer those users a chance to display that information on their own websites. So there should be some sort of script that they can put into their website that connects to my database and get that specific users content.. Anyone have any idea how to do this? Thank you in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.