【发布时间】:2019-05-28 11:45:46
【问题描述】:
我想在浏览器上显示 doc 文件。我正在使用带有 iframe 的 Google Docs API。但它向我显示谷歌文档拒绝连接的错误。我想摆脱这个错误请帮帮我..
这是我在 php 中的代码,$file 是一个变量,我在其中获取文件名,我必须将它与我的 iframe 连接起来..
echo '<iframe src="http://docs.google.com/gview?url=http://192.168.0.56/orangehrm/admin/images/"'.$file.'&embedded=true" style="width:600px; height:500px;" frameborder="0"></iframe>';
【问题讨论】:
标签: php iframe google-docs-api