i've ben doing reasearch and I can't figure out why this doesn't work. here is the code

index.php
PHP Code:
<?php 
require_once 'http://' $_SERVER["HTTP_HOST"] . '/new_tech/test.php';
$c = new C;
?>
test.php
PHP Code:
<?php 
class {
    const 
test "Hello";
}
echo 
'test';
?>
the out put is test and then 'Fatal error: Class 'C' not found in C:\Users\Owner\Dropbox\test_server\old\index.php on line 4'
does anyone know why this isn't working?