Forum Moderators: coopster
<?php
$domain = $_SERVER['HTTP_HOST'];
$filename = $_GET['filename'];
$pageid = $_GET['pageid'];
include "http://www.adifferentdomain.com/webfiles/" . $filename . ".php";
?>
Is it possible for the variables defined above to be made available to the included file? It seems to me that the PHP file is being executed without "looking at" the variables.
Thank you,
Trevor
include [php.net] 'myfile.php';