Xem file word và pdf online bằng PHP
== Rất đơn giản chỉ với : <iframe src= " http://docs.google.com/gview?url=file_word_hoac_pdf&embedded=true " style= "width:100%; height:600px;" frameborder= "0" ></iframe> Chỉ cần thay file_word_hoac_pdf bằng đường dẫn của bạn VD: http://tentrangweb/uploads/ten_file.pdf Đối với file word hoặc pdf muốn xem online bạn phải cần sài đường dẫn tuyệt đôi VD : <iframe src= " http://docs.google.com/gview?url= http://tentrangweb/uploads/ten_file.pdf &embedded=true " style= "width:100%; height:600px;" frameborder= "0" ></iframe> Lưu ý : thẻ iframe được dùng với rất nhiều loại như view 1 page của website hoặc là view 1 video bằng cách để đường dẫn vào thuộc tính src="". Đây là kết quả dưới output :