Hi, all
anyone know how to get this to work?
<?php
# this is suppose to do same thing as fpassthru();
# but using SSL
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=" . $f);
$ch = curl_init();
$fp = fopen($the_path."/".$loginname.$f, "r");
curl_setopt ($ch, CURLOPT_INFILE, $fp);
curl_setopt ($ch, CURLOPT_INFILESIZE, $file_size);
curl_setopt ($ch, CURLOPT_PUT, 1);
curl_setopt ($ch, CURLOPT_HEADER, 0);
curl_exec ($ch);
curl_close ($ch);
fclose ($fp);
?>
I have come to believe that the whole world is an enigma, a harmless enigma
that is made terrible by our own mad attempt to interpret it as though it
had an underlying truth.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]