If the script is local, then you should also include it clocally:
Do not:
PHP Code:
include('http://www.mysite.com/myscript.php');
But:
PHP Code:
include('./myscript.php');
With the 2nd option you will run the script inside the scope of the calling script, meaning that all variables (within scope) are already available in the included script. No need to pass parameters or set an environment.