$name is a variable which can contain any value whatever you assign to it i.e.
$name = "QueryHome";
Now the value of $name is "QueryHome" and in course of the program we can change it to something else we and when we need it.
But name is a constant it can carry a value but that value can not be changed.i.e.
define('name', 'Hello world');