ssl problem creating csv and downloading in IE
Posted: Mon Oct 16, 2006 7:14 am
Hi,
Everything was working until I moved to a SSL connection
I have a button on a page which users click to create a csv file. Below is the code for the button:
The above simply opens up a popup window calling a file "../stationary/accounts_sage_csv.php" and passing through a variable id. the id references a database field which gets the data to input into the csv file.
Here is the php code for the "../stationary/accounts_sage_csv.php"
I get the error when IE tries to download "Internet Explorer cannot download......nts_sage_csv.php?frn_meiid=37 from http://www.mydomain.com Internet Explorer was not able to open this Internet site"
I have narrowed down the problem to the "require_once('../global_file.php');" file. Which contains variables used through out the file. When I dont include this file everything works on SSL connection, with a none SSL connection it all works.
Any ideas?
Everything was working until I moved to a SSL connection
I have a button on a page which users click to create a csv file. Below is the code for the button:
Code: Select all
<html>
<head>
<script>
function sage_download() {
window.open('../stationary/accounts_sage_csv.php?frn_meiid=<?php echo $meiid; ?>','password1','scrollbars=no,resizable=no,width=300,height=300,left=50,top=50')
}
</script>
</head>
<body>
<input name="sage" type="button" class="AllFormButton" value="Download Sage File" onClick="sage_download()">
</script>
</body>
</html>Here is the php code for the "../stationary/accounts_sage_csv.php"
Code: Select all
<?php ob_start();
require_once('../connections/db_connection.php');
require_once('../global_file.php');
$str = "sdfsdf";
echo $str;
header("Cache-control: private");
header("Content-Type: application/txt");
header("Content-Disposition: attachment; filename=sage_royalties.txt");
?>I have narrowed down the problem to the "require_once('../global_file.php');" file. Which contains variables used through out the file. When I dont include this file everything works on SSL connection, with a none SSL connection it all works.
Any ideas?