[PHP] How do I echo a pages content?

Status
Not open for further replies.
Joined
Dec 10, 2007
Messages
2,178
Reaction score
264
I want it to sort of work like an html iframe;
Code:
<iframe src="http://domain.com/content/home.html">
But I want to do it with php.

This is wrong, but somewhat of an idea of what I want to do;
PHP:
<?php
$my_string = ('http://domain.com/content/home.html');
echo "$my_string";
?>
 
Yea, that will basically do what an iframe does but for the whole page.

Are you trying to fetch the source or just the display.
 
server settings doesnt allow outside the server to include
other way is
file_get_contents("http://www.ragezone.com/");

which would give
PHP:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html dir="ltr" lang="en" xmlns="http://www.w3.org/1999/xhtml">
<head>

	<meta http-equiv="Cache-Control" content="no-cache" />
	<meta http-equiv="Pragma" content="no-cache" />
	<meta http-equiv="Expires" content="0" />


<title>MMORPG server development forums </title>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="generator" content="vBulletin 3.7.3" />

<meta name="keywords" content="ragezone, ragezone forums, ragezone servers, mmorpg, online mmorpg, mmorpg beta ,mmorpg hacks ,mmorpg games ,mmorpg forums ,3d mmorpg ,mmorpg server ,mmorpg fantasy ,2d mmorpg ,anime mmorpg ,korean mmorpg ,dofus mmorpg ,mmorpg game ,multiplayer mmorpg ,mmorpg open beta ,mmorpg online games ,mmorpg top 200 ,final fantasy mmorpg ,mmo ,project entropia ,entropia ,mmorpg com ,mmo games ,best mmorpg ,asherons call ,entropia forum ,neocron 2 ,mmorpg list ,new mmorpg ,asheron's call ,mmorpg maker ,redmoon ,dransik ,sherwood mmorpg , mmo rpg ,pokemon mmorpg ,online mmo ,warhammer mmorpg ,mmorpg download ,mmo game" />
<meta name="description" content="Leading MMORPG development forum, providing assistance for World of Warcraft, Lineage 2, Habbo Hotel, Mu Online, MapleStory and many more." />


<!-- CSS Stylesheet -->

and other stuff of the page
 
Status
Not open for further replies.
Back