dongren9739 2013-02-02 19:02
浏览 263
已采纳

如何在html div中显示php文件输出?

Alright, so I'm trying to embed a php script that outputs a gallery of images onto my html div container. However, after an hour or so of searching I'm coming up clueless.

http://craftedbyfrank.com/test/instagram.php

That's the link to the php gallery script.

I want to display it onto the main page inside that div. [REMOVED] - thanks!

I've tried the following, but I believe it's just wrong. I get no output.

 <div id="container">
 <?php include "instagram.php"; ?>
 </div>

I'm trying to avoid actually pasting the php script into the html file.

  • 写回答

3条回答 默认 最新

  • dongnei3634 2013-02-02 19:08
    关注

    php is not being parsed on your server. If you view the html source you see the actual php code you are using to include the file. Make sure that php is installed or you're not embedding the php from a cms that's encoding your tags.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)

报告相同问题?

悬赏问题

  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?
  • ¥15 电磁场的matlab仿真
  • ¥15 mars2d在vue3中的引入问题
  • ¥50 h5唤醒支付宝并跳转至向小荷包转账界面
  • ¥15 算法题:数的划分,用记忆化DFS做WA求调
  • ¥15 chatglm-6b应用到django项目中,模型加载失败
  • ¥15 CreateBitmapFromWicBitmap内存释放问题。
  • ¥30 win c++ socket
  • ¥15 C# datagridview 栏位进度