newbie question website withint a website

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
iknowu99
Forum Commoner
Posts: 39
Joined: Thu Aug 14, 2008 3:20 pm

newbie question website withint a website

Post 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.
Cut
Forum Commoner
Posts: 39
Joined: Sat Aug 23, 2008 8:01 pm

Re: newbie question website withint a website

Post by Cut »

PHP this is not.

But use the iframe tag. Google it.
User avatar
omniuni
Forum Regular
Posts: 738
Joined: Tue Jul 15, 2008 10:50 pm
Location: Carolina, USA

Re: newbie question website withint a website

Post 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
[]
Post Reply