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?