El Thu, 11 Jan 2007 14:59:36 -0500
"Sugrue, Sean" <[EMAIL PROTECTED]> 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.
[EMAIL PROTECTED]
+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

Reply via email to