开发者

PHP include one website into another

I'm trying to show my Dropbox Public Folder on my website, i've got the link and i'm trying to use PHP include to do it like this:

<?php
include("MY DROPBOX LINK");
?>
开发者_运维问答

But nothing shows up. I'm trying to avoid iFrames and thought PHP might be cleaner


include only works with local file references (same server)*- what are you specifically after? You could use an iframe?

<iframe src='MY DROPBOX LINK'></iframe>

OR

To include in your application, there are also native PHP scripting means such as here..and also here

*correction: as per the comments below, you can grab external content, though it is not recommended


You should probably be looking at using the Dropbox API for this. There is some PHP code here which should be a good starting point.


If you can install the php-curl module (or already have it), that seems the best option to me without iframes.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜