Cómo visualizar pdf en php
Estoy tratando de mostrar un archivo pdf en PHP, utilicé:
<html>
<head>
<style type="text/css">
#myiframe {width:600px; height:100%;}
</style>
</head>
<body>
<div id="scroller">
<iframe name="myiframe" id="myiframe" src="xml.pdf">
</div>
</body>
</html>
funciona bien en html, pero cuando quiero usar este código en un archivo php, no muestra nada y solo intenta descargar el archivo pdf. Alguien puede ayudarme?