I know that it is possible to include php file with variables. It looks like this sample.
include 'http://www.example.com/file.php?foo=1&bar=2';
How to include php file on local file system (instead of url) with variables? Smth like that.
include 'file.php?foo=1&bar=2';
Is it possible?
UPDATE I wanna get variable from index page and include the file with exact variable from local system to content div. smth like that
<?php
$foo=$_GET['foo'];
$bar=$_GET['bar'];
?>
<body>
<div id="main">
<div id="content">
<?php
include 'file.php?foo='.$foo.'&bar='.$bar;
?>
</div>
</div>
</body>
$_GETso you can set them also with$_GET