PHP-Code:
//Inhalt domainA.php
<?php
readfile('http://localhost/domainB.php?sag=Hallo&count=10');
?>
//Inhalt domainB.php
<?php
echo $_GET['sag'];
for ($x = 1;$x <= $_GET['count'];++$x)
echo '<br />'.$x;
?>
Ausgabe bei Aufruf von domainA.php:
Code:
Hallo
1
2
3
4
5
6
7
8
9
10