Ok here are some more details:
Folders are as follows:
htdocs -> project -> parser
-> collage
parser and collage are two folders in parser which is a folder in the root directory htdocs.
index.php is located at htdocs.
It includes $menu which is 'http://' . $_SERVER['HTTP_HOST'] . '/project/collage/menu.php';
Then, this menu.php which is under htdocs->project->collage, includes a file called parser.php under htdocs->project->parser like this:
include 'http://'.$_SERVER['HTTP_HOST'].'/project/parser/parser.php';
There is a class located at parser.php which is not visible in menu.php at all! Also variables are not accessible!
As for $GET[], I'm using it in menu.php. I wanna get a variable called $GET['p'] which is passed to the URL.