Here at first we write the code.
<?php
/**
* @version 1.0 $
* @package HelloWorld
* @copyright (C) 2005 Arifur Rahman
* @license http://www.gnu.org/copyleft/gpl.html GNU/GPL
*/
/** ensure this file is being included by a parent file */
defined( '_JEXEC' ) or die( 'Restricted Access.' );
echo JText::_('Hello World');
?>
Then we write the xml file
<?xml version="1.0" encoding="utf-8"?>
<install type="module" version="1.5.0">
<name>Hello World</name>
<author>Arifur Rahman</author>
<creationDate>September 2009</creationDate>
<copyright>(C) 2005 Arifur Rahman</copyright>
<license>http://www.gnu.org/copyleft/gpl.html GNU/GPL</license>
<version>1.0</version>
<description>A module that says hello</description>
<files>
<filename module="mod_helloworld">mod_helloworld.php</filename>
</files>
<params />
</install>
After that we install our module and show in the left side. The out put will show like this.

