I want to open a word file on browser using php. I have read on somewhere that it could not open on browser and you should use iframe for that. Can any one suggest me some solution if I dont want to open it using iframe. I might use this code to view word file on browser.
<?php
header('Content-disposition: inline');
header('Content-type: application/msword');
readfile('filename');
exit;
?>