php include或include_once函数不起作用

I have php code in parameter_file.php file as below. when i called this file in index.php file, its not reading any values ! Both the files are present under same directory and using latest php 5.4

parameter_file.php

<?php
$color='red';
$car='BMW';
?>

Body of index.php

<?php include 'parameter_file.php';
echo  "value is : ".$color;
?>

Could you please tell where/what the problem is ?

error_reporting(E_ALL) helped to find where the issue is... the problem was both the files are present in same folder but under different sub domain. I have corrected it ., worked fine.

Vars are not always transmitted between files, excepted if you declare it global before including the file

<?php
global $car, $color;
include 'parameter_file.php';
echo  "value is : ".$color;
?>
include ('parameter_file.php');

it must be in brackets () - actually without brackets it's also possible, but it works differently and can depend on the server settings. Check the official doc for details.

And of course variables are transmitted between files, all the included files comprise the same namespace with the file where you include them.

global declaration is needed to access a global variables inside functions.