include file

Mariam's Avatar, Join Date: Sep 2007
Go4Expert Member
Suppose I have include.php file.

Is it possible to include this file to index.php in that way that all variables that has been assigned in index.php , include.php must uderstand.
Mariam's Avatar, Join Date: Sep 2007
Go4Expert Member
P.S. I used xmlhttp.open("GET",'include.php',true); to include the file
shabbir's Avatar, Join Date: Jul 2004
Go4Expert Founder
Why not directly include('index.php');