Last active
December 28, 2015 09:39
-
-
Save mfkenson/7480426 to your computer and use it in GitHub Desktop.
http://stackoverflow.com/questions/3662531/window-open-not-working-in-ie
http://stackoverflow.com/questions/1218925/php-script-to-download-file-not-working-in-ie
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//var myWindow=window.open("http://hostname/index.php?action=download",'Download Log','width=200,height=100'); | |
above not work | |
var myWindow=window.open("http://hostname/index.php?action=download",'Download_Log','width=200,height=100'); | |
<?php | |
$logfile = file_get_contents("C:/log.txt", true); | |
header('Content-disposition: attachment; filename=log.txt'); | |
header("Pragma: public"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); | |
echo $logfile; | |
exit; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment