PHP Redirect Script

enovator

BANNED
Joined
Mar 8, 2008
Messages
592
Reaction score
238
Hi,

Thanks for stopping by. I need a PHP redirect script which does not actually redirect to affiliate page, instead add the content of the page in background.

I know about the following code:

<?php
header("Location:youraffilaitelinkcode.com/whatever");
?>

but this actually redirect. I want the visitors to stay on my site.

Any help will be highly appreciated and thanked

cheers
 
Seems like you are looking for this:

Code:
<?php

$source = file_get_contents("https://example.com");
echo $source;

?>

Keeps in mind it's going to work partially with websites working on https://
 
I guess you are looking for Iframes.
 
Hi,

Thanks for stopping by. I need a PHP redirect script which does not actually redirect to affiliate page, instead add the content of the page in background.

I know about the following code:

<?php
header("Location:youraffilaitelinkcode.com/whatever");
?>

but this actually redirect. I want the visitors to stay on my site.

Any help will be highly appreciated and thanked

cheers
use php_curl method instead of file_get_contents() ,because curl is backend processor and having less resource with specific headers
 
use php_curl method instead of file_get_contents() ,because curl is backend processor and having less resource with specific headers
Simple words please. I am not a hacker!

can you provide me the code/script?
 
Do you mean iframe?
Content of the page but domain is unchanged?
 
Back
Top