If $page is a dynamic variable it can only be called on an instance of PageStuff. e.g
$pageStuff = new PageStuff();
$pageStuff->page = $customVar;
In your case, the $page object is being passed to the create_vars() method, which can modify the object but after the method completes, the $page object goes out of scope.
If you just want to stream the file from your other server you can use the readfile() .
header('Content-Type: application/zip');
header("Content-Transfer-Encoding: Binary");
header("Content-disposition: attachment; filename=\"file.zip\"");
readfile('http://www.yourhost.net/file.zip');
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.