benhowdle89
benhowdle89

Reputation: 37454

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

Upvotes: 2

Views: 4169

Answers (3)

JP19
JP19

Reputation:

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

Upvotes: 0

SW4
SW4

Reputation: 71140

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

Upvotes: 4

robjmills
robjmills

Reputation: 18588

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.

Upvotes: 0

Related Questions