Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. php question about headers

php question about headers

Scheduled Pinned Locked Moved Web Development
questionphpcom
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • K Offline
    K Offline
    keegan
    wrote on last edited by
    #1

    Hi guys. I have a simple question. I'm streaming one file from one host to another, for various reasons. I have, say, a .rar file on one host, and the download link is on another. Let's call the place where the fle is host A, and where the lin kto the file is host B. Im doing this using the following code, on host A:

            $file = "http://www.myhost.com/file.rar"; 
            header("Content-disposition: attachment; filename=".basename($file)."");  
            readfile("$file");
    

    Now i'm curious as to whether or not this counts as bandwidth for host A, as well as for host B. I assume it's like adding the google logo to my website, it uses google's bandwidth, not mine. However, in the download window, it says "Downloading file from Host A." But, that could just be because it's streaming it. So... does anyone know? :) *.* cin >> knowledge;

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups