Re: Downloading a binary file

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

 



El Thu, 11 Jan 2007 14:59:36 -0500
"Sugrue, Sean" <Sean.Sugrue@xxxxxxxxxx> escribió:

> I need download a binary file in php. I don't need to read the
> contents just download the whole file to a browsed directory.
> I know you can use the header function, does anyone know the syntax.
> 
> Sean
> 


Maybe you can do:

	<?php
		$file = file_get_contents(<URI>); // Must have wrapper
activated
		file_put_contents(<FILE>, $file);
	?>

---
Miguel J. Jiménez
ISOTROL, S.A.
mjjimenez@xxxxxxxxxxx
+34 955036800
+34 607448764

"I try to save a life a day. Usually it's my own."
John Crichton, FARSCAPE (1x07)

-- 
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