我有此页面来显示网页中xls文件的内容。当我在IE中打开此页面时,内容显示几秒钟,然后更改为页面无法显示。但是在Firefox中它可以正常工作
<?php
include('../phpexcel/Classes/PHPExcel/IOFactory.php');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>ESL, KAKRAPAR</title>
<!--style sheet -->
<link rel="stylesheet" href="css/home_style.css" type="text/css" />
<link rel="stylesheet" href="css/common.css" type="text/css" />
</head>
<body>
<div id="container">
<div id="header"><div class="header_text">
</div>
</div>
<div id="navbar"> <?php include('../kaps/leftmenu.php');?></div>
<div id="body_content">
<h3 class="title"> Organisation Chart</h3>
<?php
$inputFileType = 'Excel5';
$inputFileName = 'extreme_data.xls';
$objReader = PHPExcel_IOFactory::createReader($inputFileType);
$objPHPExcel = $objReader->load($inputFileName);
$objWriter = PHPExcel_IOFactory::createWriter($objPHPExcel, 'HTML');
$objWriter->save('php://output');
exit();
?>
</div>
<div id="footer"><?php include('footer.php');?></div>
</div>
</body>
</html>