$_SERVER['SERVER_NAME'] returned a strange response; the server created a new zip file when I used that in the path, sent it over to me, and then deleted it (
$file = $_SERVER['SERVER_NAME'] . '/downloads/Tutorial1.wmv.zip';
). I know the file exists, and I echo'd the
$_SERVER['SERVER_NAME'] and that came out correct. That's not a big problem because I can just type the full address like I did before and it works (the same thing that my first code snippet does), what I want is the file size to work most of all, so people aren't left not knowing how big the file is (and these are big files).
I'm getting a little confused on how
$file = $_SERVER['SERVER_NAME'] . '/downloads/Tutorial1.wmv.zip'; is different from
'12.148.233.90/downloads/Tutorial1.wmv.zip' when they return the same thing. Thanks for your help.
And the reason I'm using this code for zip files is one of two things, I will be force downloading other files than zip (like wmv and txt, most browsers read them) and my firefox somehow has the power to open up zip files within itself and it won't let me download them.