File Download With A Twist....

From: Date: Sun, 22 Apr 2001 02:49:27 +0000
Subject: File Download With A Twist....
Groups: php.general 
Request: Send a blank email to php-general+get-49719@lists.php.net to get a copy of this message
G'Day, I would like to do the following when a user clicks on a link to this PHP script. The script would be located on www.myserver.com but the page with the link would be on a mirror say in Australia (www.someserver.com.au): - Log info about the user download request to a text file - Display a page ("Thankyou for downloading xxxx. If you download does not start automatically..... etc.) - Start a download of a file from a remote server based on the parameters to the script Eg: Suppose that the page on www.someserver.com.au contained the following link http://www.myserver.com/dnld.php?loc=au&file=somefile.zip - Log info about the user download request to a text file Write this info into a text file on www.myserver.com - Display a page ("Thankyou for downloading xxxx. If you download does not start automatically..... etc.) Display the page in the user's browser - Start a download of a file from a remote server based on the parameters to the script Essentially initiate http://www.someserver.com.au/somefile.zip TIA -- Donovan ---------------------------------------------------------------------------- ---- E-Mail: d.edye@bigfoot.com Web: www.edye.wattle.id.au "If I throw a stick will you go away?" "Very funny Scotty. Now beam down my pants!" GXExplorer - Freeware Delphi Windows Explorer Replacement and Delphi Components www.gxexplorer.org ---------------------------------------------------------------------------- ----

« previous php.general (#49719) next »