Hi Wish.
The GET protocol is a HTTP Protocol, which is only available in HTTP Requests.
The
include() function is used to load code from a local resource. So if you ask for 'file.php?var=hello' it will look for a file called exactly that rather than 'file.php'.
Note that the include() function will load the code from the file into the current script so if you need to import a variable into that code you could do something like this:
inc.php
index.php
-
<?php
-
$myVar = "Hello World!";
-
include("inc.php");
-
?>
-
Will print 'Hello World!".