I've added this below code for css reference.

JHTML::_('stylesheet', 'example.css', 'components/'._THISCOMPONENT.'/assets/css/');

It's working fine in local.However when i attempt to operate it within the server, the css isn't working because of this output html css link

<link rel="stylesheet" href="/components/com_fms/assets/css/css-3391b7d3949af1560b9927c0c3a672b2.php" type="text/css" />

Do anybody have idea on fixing this problem?

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />

Automatically this code work correct if it's put in template-file (templates/my_fantastic_template/index.php)

Do this code:

$document =& JFactory::getDocument();
$document->addStyleSheet('components/'._THISCOMPONENT.'/assets/css/example.css');

I really hope it will likely be helpfull.

Use

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />

rather

JHTML::_('stylesheet', 'example.css', 'components/'._THISCOMPONENT.'/assets/css/');

complet /templates/system/css/system.css together with your hyperlink to the css file