Page content from another address?

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
Watch

Gnet

VIP Member
Impact
9
ive been trying to make a php page that gets all the data on that page from a remote http address

forexample

im making page 1

data in page 1 should be received and showed from http://www.domain.com/index.php

im not sure how to do that?
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
PHP:
<?php

$page = file_get_contents('http://site.com/url/to/the/page');
echo $page;

?>
 
1
•••
worked like a charm!

rep added
 
0
•••
DomainEasy: flexible LTO options. Close more domain deals with financing.

We're social

Escrow.com
Spaceship
Escrowly
CryptoExchange.com
Domain Recover
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back