thats actually gonna look for a file called test.inc?value=y which wont be found.
but this will work as you want it to:
$value = 'y';
include("./test.inc");
value will be set to y before test.inc is called so when test gets called that variable value is available to it