Re: Automatic Download using URL, HELP!

From: Date: Fri, 23 Aug 2002 03:28:49 +0000
Subject: Re: Automatic Download using URL, HELP!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-113711@lists.php.net to get a copy of this message
Just out of curiousity, how did you ever get PHP to prompt you where to save a file? Could you post a more complete code sample? Bogdan Chip Hankley wrote:
I'm stuck. I'm trying to mine a bunch of data from a site, and I've gotten my script to the point where I can collect the path to the filename that I need... something like: $File_To_Get = "http://www.someserver.org/ftp/yourfile.zip"; Now I want to automatically save this file to my hard drive, WITHOUT prompting me where to save it. I've tried simply using COPY: COPY($File_To_Get, "d:\\myfiles\\file1.zip"); But this doesn't work. Seems like this should be really easy...but I'm failing miserably. TIA Chip Hankley


« previous php.general (#113711) next »