Re: Slow file download

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, 2008-12-02 at 12:14 -0800, Brian Dunning wrote:
> I'm open to something like that - we're in the middle of the holiday  
> crunch and can't afford any downtime, so a significant change is out  
> of the question. This is part of much larger and more involved  
> scripting, so it would need to be a plug-n-play replacement and also  
> be able to return information to the script calling it - bytes,  
> success or failure. We're grabbing filenames and credentials out of  
> MySQL, marking them "in progress", attempting the download, and then  
> updating the MySQL record with the results.
> 
> On Dec 2, 2008, at 12:04 PM, Ashley Sheridan wrote:
> 
> > Instead of using PHP for this, why not have a look at WGET for  
> > Windows.
> 
> 
> 
Well you could always replace your CURL request with an exec() call to
WGET, which will be able to return the HTTP request codes (200 for
success, 404 for file not found, etc) and other information.


Ash
www.ashleysheridan.co.uk


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux