Page 1 of 1
newbie question website withint a website
Posted: Fri Sep 05, 2008 8:15 pm
by iknowu99
how do you load another website on your website?
i'm trying to get paypal to load in a table, i am writting with html code for now. please help.
Re: newbie question website withint a website
Posted: Fri Sep 05, 2008 8:22 pm
by Cut
PHP this is not.
But use the iframe tag. Google it.
Re: newbie question website withint a website
Posted: Fri Sep 05, 2008 10:03 pm
by omniuni
You also may be able to do something similar by merely calling a remote URL. I have, for example, successfully loaded a Google Document into my website by storing the contents of the URL into a variable and doing some simple processing to remove the excess HTML from the header and footer. Code was similar to:
Code: Select all
<?php
$remote_page = file_get_contents('http://page.nowhere.com/page.html');
//Add code here to cut out excess code, for example, by finding <body> and </body> tags and taking a substr() of what is in between them.
echo $remote_page;
?>
Good Luck,
OmniUni
[]