I have a question about PHP’s fopen() function (using “php://output”).
Server A uses this fopen() function in order to stream a file from Server B to the user’s computer (I have all the necessary header() functions set up to force a download).
My question is: Will the file be streamed through Server A, therefore using Server A’s bandwidth resources? Or will only Server B’s bandwidth be used? I want the streamed file to not use Server A’s bandwidth resources, only Server B’s.
Thank you for the help!
Perhaps I’m misunderstanding, but won’t this always use both if these are separate machines? One server has the file and must therefore use consume “up” bandwidth, and the other must download the file and therefore use “down” bandwidth. If server A proceeds to upload the file to a client, then only server A will be hit, but it will have already imposed bandwidth costs to both machines… so for a 1MB file:
Server A: 1MB down + 1MB up
Server B: 1MB up