i'm going crazy over this - here is the code i'm using _- SOME1 PLEASE TELL ME WHAT I'M DOING WRONG
I'M GIVING ALL MY POINTS ( I REALLY REALLY NEED A SOLUTION ... FAST!)
######################################################
function upload($filename, $content_type="application/x-x509-ca-cert") {
__header("Pragma: public");
header("Expires: 0");
header("Cache-Control: public, must-revalidate, post-check=0, pre-check=0");
header("Content-type: $content_type");
header("Content-length: ".strlen($filename)."\"");
header("Content-Disposition: filename=$filename");
readfile("$filename");
__exit();
}
upload("cacert.crt");
######################################################
i keep getting this error -
Microsoft Internet Explorer
Internet Explorer cannot download test.php from localhost.
Internet Explorer was not able to open this Internet site.
The requested site is either unavailable or cannot be found. _Please try again later.
😕 I dont understand why i'm download the file "test.php" instead of the ca-certificate😕
I'm running - Apache/2.0.48 (Win32) -- PHP/4.3.4 -- mod_ssl/2.0.46 -- OpenSSL/0.9.7b
Vamsi