Why on earth are you including things on localhost (the same machine your script is running on) via the webserver? There is a common way of accessing local storage called the file system, i.e. something along the lines of
include '/data/www/scriptfile.php';
This is used when you actually want to execute the included script somewhere in the currently running script. Do note that this is the exact same thing (almost) as copy-pasting the included script into the place of the include statement. Consider two script files, included.php and main.php
included.php
echo 5;
$var = 'a';
return 0;
main.php
$var = null;
$retval = include 'included.php';
echo $var;
This turns the executed script into
#start of main.php
$var = null;
# included script - more or less copy pasted (change to the return statement)
echo 5;
$var = 'a';
# and the return value
$retval = 0;
# rest of main.php
echo $var;
Or, if it's just a matter of displaying that particular web page, which it seems to be, tell the browser to fetch it instead
header('location: http://example.com/script.php?stuff=values');
And if your script doesn't execute properly and gives no error messages, fix your error reporting settings in php.ini.