Comment faire pour afficher le pdf dans le php

J'essaie d'afficher un fichier pdf en php, j'ai utilisé:

<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>

il fonctionne en html bien, mais quand je veux utilisé ce code dans un fichier php, il n'affiche rien et n'essayez de télécharger le fichier pdf.
Quelqu'un peut-il m'aider?

Il n'y a pas de code PHP. Comment êtes-vous à l'aide de PHP?
ont u utilisé comme extension de fichier .le php?
Votre code fonctionne pour moi
Voir >>> stackoverflow.com/questions/291813/...
Essayez également header("Content-type: application/pdf"); header("Content-Disposition: inline; filename=filename.pdf"); @readfile('path\to\filename.pdf');

OriginalL'auteur Lamiya | 2013-08-04