Forum Moderators: coopster
Now, This way(below) it does work, but now i can't pas variables throug the url:
<?PHP
include('test.php);
include('test1.php);
?>
Question 1:
Is there a way to include a php file with a query in it like:
<?PHP
include('test.php?keywords=links');
?>
Question 2:
When file(test.php) is included in a file: run.php and(test.php) puts some results in an array, can run.php access that array?
This should answer your second questions:
When a file is included, the code it contains inherits the variable scope of the line on which the include occurs. Any variables available at that line in the calling file will be available within the called file, from that point forward.
[php.net...]
Andreas