I'm developing a Physics Study website, where the Teacher uploads files for student viewing. Except for the url in the database and the file in a folder. I am unable to view the pdf file on the page.
I'm using the iframe tag to view. I have seen many comments that this tag is not appropriate for such use.
<iframe src='http://docs.google.com/gview?url=http://localhost/hammer/<?php $arquivo?>&embedded=true' style='width:600px; height:400px;' frameborder='0'></iframe>
I use the variable $ file to get the url in the database.
Can anyone help me?