require doesn't work in a module's file
You can use this approach to include a file in .module

function module_name_init(){
    module_load_include('inc', 'module_name', 'includes/common');
}


and place common.inc file in includes folder in your custom module.Now write your php code here.