<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Prabu Kalaiselvam</title>
	<atom:link href="http://www.prabukalaiselvam.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.prabukalaiselvam.com</link>
	<description>web 2.0</description>
	<lastBuildDate>Fri, 16 Jul 2010 05:13:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>UNIX / Linux Command Summary</title>
		<link>http://www.prabukalaiselvam.com/2010/07/16/unix-linux-command-summary/</link>
		<comments>http://www.prabukalaiselvam.com/2010/07/16/unix-linux-command-summary/#comments</comments>
		<pubDate>Fri, 16 Jul 2010 05:13:35 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.prabukalaiselvam.com/2010/07/16/unix-linux-command-summary/</guid>
		<description><![CDATA[access()Used to check the accessibility of files intAccess(pathname, access_mode)Char* pathname;int access-mode;The access modes are.04 read02 write01 execute (search)00 checks existence of a file &#38; operatorexecute a command as a background process. bannerprints the specified string in large letters. Each argument may be upto 10 characters long. breakis used to break out of a loop. It does not exit from the program. CalProduces a calender of the current month as standard output. The month (1-12) and [...]]]></description>
			<content:encoded><![CDATA[<p><span style="font-family:Times New Roman; font-size:12pt"><strong>access()</strong><br/>Used to check the accessibility of files<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>int</strong><br/>Access(pathname, access_mode)<br/>Char* pathname;<br/>int access-mode;<br/>The access modes are.<br/>04 read<br/>02 write<br/>01 execute (search)<br/>00 checks existence of a file<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>&amp; operator</strong><br/>execute a command as a background process.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>banner</strong><br/>prints the specified string in large letters. Each argument may be upto 10 characters long.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>break</strong><br/>is used to break out of a loop. It does not exit from the program.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Cal</strong><br/>Produces a calender of the current month as standard output. The month (1-12) and year (1-9999) must be specified in full numeric format.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Cal</strong> [[ month] year]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Calendar</strong><br/>Displays contents of the calendar file<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>case operator </strong><br/>The case operator is used to validate multiple conditions.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Case $string in</strong><br />
		</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">Pattern 1)<br/>Command list;;<br/>Command list;;<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt">Pattern 3)<br/>Command list;;<br/>easc<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>cat</strong><br/>(for concatenate) command is used to display the contents of a file. Used without arguments it takes input from standard input &lt;Dtrl d&gt; is used to terminate input.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>cat [filename(s)]<br/></strong>cat &gt; [filename]<br/>Data can be appended to a file using &gt;&gt;<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Some of the available options are :<br/></strong>Cat [-options] filename(S)<br/>-s silent about files that<br/>cannot be accessed<br/>-v enables display of non printinging characters (except tabs, new lines, form-<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>feeds)<br/></strong>-t when used with –v, it causes tabs to be printed as ^I&#8217;s<br/>-e when used with –v, it causes $ to be printed at the end of each line<br/>The –t and –e options are ignored if the –v options is not specified.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>cd</strong><br/>Used to change directories<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>chgrp</strong><br/>Changes the group that owns a file.<br/>Chgrp [grou –id] [filename]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>chmod</strong><br/>Allows file permissions to be changed for each user. File permissions can be changed only by the owner (s).<br/>Chmod [+/-][rwx] [ugo] [filename]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>chown</strong><br/>Used to change the owner of a file.<br/>The command takes a file(s) as source files and the login id of another user as the target.<br/>Chown [user-id] [filename]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>cmp</strong><br/>The cmp command compares two files (text or binary) byte-by-byte and displays the first occurrence where the files differ.<br/>Cmp [filename1] [filename2] -1 gives a long listing<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>comm.</strong><br/>The comm command compares two sorted files and displays the instances that are common. The display is separated into 3 columns.<br/>Comm. filename1 filename2<br/>first displays what occurs in first files but not in the second<br/>second displays what occurs in second file but not in first<br/>third displays what is common in both files<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>continue statement</strong><br/>The rest of the commands in the loop are ignored. It moves out of the loop and moves on the next cycle.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>cp</strong><br/>The cp (copy) command is used to copy a file.<br/>Cp [filename1] [filename2]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>cpio(copy input/output)</strong><br/>Utility program used to take backups.<br/>Cpio operates in three modes:<br/>-o output<br/>-i input<br/>-p pass<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>creat()<br/></strong>the system call creates a new file or prepares to rewrite an existing file. The file pointer is set to the beginning of file.<br/>#include&lt;sys/tyes.h&gt;<br/>#include&lt;sys/stat.h&gt;<br/>int creat(path, mode)<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>char *path;<br/></strong>int mode;<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>cut</strong><br/>used to cut out parts of a file. It takes filenames as command line arguments or input from standard input. The command can cut columns as well as fields in a file. It however does not delete the selected parts of the file.<br/>Cut [-ef] [column/fie,d] filename<br/>Cut-d &#8220;:&#8221; –f1,2,3 filename<br/>Where –d indicates a delimiter specified within &#8220;:&#8221;<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>df</strong><br/>used to find the number of free blocks available for all the mounted file systems.<br/>#/etc/df [filesystem]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>diff</strong><br/>the diff command compares text files. It gives an index of all the lines that differ in the two files along with the line numbers. It also displays what needs to be changed.<br/>Diff filename1 filename2<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>echo</strong><br/>The echo command echoes arguments on the command line.<br/>echo [arguments]<br/><br/><strong>env</strong><br/>Displays the permanent environment variables associated with a user&#8217;s login id<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>exit command</strong><br/>Used to stop the execution of a shell script.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>expr command</strong><br/>Expr (command) command is used for numeric computation.<br/>The operators + (add), -(subtract), *(multiplu), /(divide), (remainder) are allowed. Calculation are performed in order of normal numeric precedence.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>find</strong><br/>The find command searches through directories for files that match the specified criteria. It can take full pathnames and relative pathnames on the command line.<br/>To display the output on screen the –print option must be specified<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>for operator</strong><br/>The for operator may be used in looping constructs where there is repetitive execution of a section of the shell program.<br/>For var in vall val2 val3 val4;<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Do commnds; done</strong><br />
		</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>fsck</strong><br/>Used to check the file system and repair damaged files. The command takes a device name as an argument<br/># /etc/fsck /dev/file-system-to-be-checked.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>grave operator</strong><br/>Used to store the standard the output of a command in an enviroment variable. (&#8216;)<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>grep</strong><br/>The grep (global regular expression and print) command can be used as a filter to search for strings in files. The pattern may be either a fixed character string or a regular expression.<br/>Grep &#8220;string&#8221; filename(s)<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>HOME</strong><br/>User&#8217;s home directory<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>if operator</strong><br/>The if operator allows conditional operator<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>If expression; then commands; fi<br/></strong>if … then…else… fi<br/>$ if; then<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>commands<br/></strong>efile; then<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>commands<br/></strong>fi<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>kill</strong><br/>used to stop background processes<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>In</strong><br/>used to link files. A duplicate of a file is created with another name<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>LOGNAME</strong><br/>displays user&#8217;s login name<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>ls</strong><br/>Lists the files in the current directory <br/><br/>Some of the available options are:<br/>-l gives a long listing<br/>-a displays all file{including hidden files<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>lp</strong><br />
			<br/>used to print data on the line printer.<br/>Lp [options] filename(s)<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>mesg </strong><br/>The mesg command controls messages received on a terminal.<br/>-n does not allow messages to be displayed on screen<br/>-y allows messages to be displayed on screen<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>mkdir </strong><br/>used to create directories<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>more</strong><br/>The more command is used to dispay data one screenful at a time.<br/>More [filename]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>mv</strong><br/>Mv (move) moves a file from one directory to another or simply changes filenames. The command takes filename and pathnames as source names and a filename or exiting directory as target names.<br/>mv [source-file] [target-file]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>news</strong><br/>The news command allows a user to read news items published by the system administrator.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>ni</strong><br/>Displays the contents of a file with line numbers<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>passwd</strong><br/>Changes the password<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>paste</strong><br/>The paste command joins lines from two files and displays the output. It can take a number of filenames as command line arguments.<br/>paste file1 file2<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>PATH</strong><br/>The directories that the system searches to find commands<br/><br/><strong>pg </strong><br/>Used to display data one page (screenful) at a time. The command can take a number of filenames as arguments.<br/>Pg [option] [filename] [filename2]…..<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>pipe</strong><br/>Operator (1) takes the output of one commands as input of another command.<br/><br/><strong>ps</strong><br/>Gives information about all the active processes.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>PS1<br/></strong>The system prompt<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>pwd</strong><br/>(print working directory) displays the current directory.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>rm</strong><br/>The rm (remove) command is used to delete files from a directory. A number of files may be deleted simultaneously. A file(s) once deleted cannot be retrieved.<br/>rm [filename 1] [filename 2]…<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>sift command </strong><br/>Using shift $1becomes the source string and other arguments are shifted. $2 is shifted to $1,$3to $2 and so on.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Sleep</strong><br/>The sleep command is used to suspend the execution of a shell script for the specified time. This is usually in seconds.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>sort</strong><br/>Sort is a utility program that can be used to sort text files in numeric or alphabetical order<br/>Sort [filename]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>split</strong><br/>Used to split large file into smaller files<br/>Split-n filename<br/>Split can take a second filename on the command line.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>su</strong><br/>Used to switch to superuser or any other user.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>sync</strong><br/>Used to copy data in buffers to files<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>system0</strong><br/>Used to run a UNIX command from within a C program<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>tail</strong><br/>The tail command may be used to view the end of a file.<br/>Tail [filename]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>tar </strong><br/>Used to save and restore files to tapes or other removable media.<br/>Tar [function[modifier]] [filename(s)]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>tee</strong><br/>output that is being redirected to a file can also be viewed on standard output.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>test command </strong><br/>It compares strings and numeric values.<br/>The test command has two forms : test command itself If test ${variable} = value then<br/>Do commands else do commands<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>File</strong><br/>The test commands also uses special operators [ ]. These are operators following the of are interpreted by the shell as different from wildcard characters. <br/>Of [ -f ${variable} ]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>Then<br/></strong>Do commands<br/>Elif<br/>[ -d ${variable} ]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>then<br/></strong>do commands<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>else<br/></strong>do commands<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>fi<br/></strong>many different tests are possible for files. Comparing numbers, character strings, values of environment variables.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>time</strong><br/>Used to display the execution time of a program or a command. Time is reported in seconds.<br/>Time filename values<strong><br/></strong><br/><strong>tr</strong><br/>The tr command is used to translate characters.<br/>tr [-option] [string1 [string2]]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>tty </strong><br/>Displays the terminal pathname<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>umask</strong><br/>Used to specify default permissions while creating files.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>uniq </strong><br/>The uniq command is used to display the uniq(ue) lines in a sorted file.<br/>Sort filename uniq<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>until</strong><br/>The operator executes the commands within a loop as long as the test condition is false.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>wall</strong><br/>Used to send a message to all users logged in.<br/># /etc/wall message<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>wait </strong><br/>the command halts the execution of a script until all child processes, executed as background processes, are completed.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>wc</strong><br/>The wc command can be used to count the number of lines, words and characters in a fine.<br/>wc [filename(s)]<br/><strong>The available options are: </strong><br/>wc –[options] [filename]<br/>-1<br/>-w<br/>-c<br/>while operator<br/>the while operator repeatedly performs an operation until the test condition proves false.<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>$ while<br/></strong>Ø do<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>commands <br/></strong>Ø done<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>who </strong><br/>displays information about all the users currently logged onto the system. The user name, terminal number and the date and time that each user logged onto the system.<br/>The syntax of the who command is who [options]<br />
</span></p>
<p><span style="font-family:Times New Roman; font-size:12pt"><strong>write</strong><br/>The write command allows inter-user communication. A user can send messages by addressing the other user&#8217;s terminal or login id.<br/>write user-name [terminal number]<br />
</span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2010/07/16/unix-linux-command-summary/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>sso Implementation in linux</title>
		<link>http://www.prabukalaiselvam.com/2009/10/30/sso-implementation-in-linux-2/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/30/sso-implementation-in-linux-2/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 18:10:59 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=47</guid>
		<description><![CDATA[Steps needs to follow to implement sso in our server (Linux)Â Â  : 1. Needs to download ntlm package for our corresponding server version. 2. Install or upload the ntlm.so file in apache module folder. 3. Needs to enable the ntlm module in apache configuration file for load the module. 4. Needs to add some few configuration for Â ntlm (domain name,domain controller name and domain backup controller name) and also needs to set the authentication type [...]]]></description>
			<content:encoded><![CDATA[<p>Steps needs to follow to implement sso in our server (Linux)Â Â  : 1. Needs to download ntlm package for our corresponding server version. 2. Install or upload the ntlm.so file in apache module folder. 3. Needs to enable the ntlm module in apache configuration file for load the module. 4. Needs to add some few configuration for Â ntlm (domain name,domain controller name and domain backup controller name) and also needs to set the authentication type as ntlm. <strong>Sample sso implementation.</strong>
	</p>
<ul>
<li>1. downloaded ntlm file from the sourceforge site [<strong>mod_ntlm.so</strong>].
</li>
<li>2. Uploaded that file in our web server. Which is located in <strong>/etc/httpd/modules/</strong>
		</li>
<li>3. Then we needs to enable the ntlm module in apache configuration file. Which is located in <strong>/etc/httpd/conf/</strong>
		</li>
<li><strong>4. </strong>Syntax for enable the module <strong>â€œLoadModule ntlm_module modules/mod_ntlm.so.<br />
</strong></li>
<li><strong>5.  </strong>We needs to configure domain name ,domain controller name and domain backup controller name. <strong>AuthName NTAuth</strong><br />
			<strong>AuthType NTLM</strong><br />
			<strong>NTLMAuth on</strong><br />
			<strong>NTLMAuthoritative on</strong><br />
			<strong>NTLMDomain </strong>sample domain <strong>NTLMServer </strong>sample domain controller name <strong>NTLMBackup </strong>sample domain backup controller name <strong>Require valid-user</strong>
		</li>
<li>6. We needs to overwrite our own domain controller name,domain backup name
</li>
<li><strong>7. Finally, we need to restart our apache server.<br />
</strong></li>
<li><strong>8. After that we need to check, ntlm authentication is enabled or not using phpinfo.</strong>
		</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/30/sso-implementation-in-linux-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>xml and xpath</title>
		<link>http://www.prabukalaiselvam.com/2009/10/30/xml-and-xpath-2/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/30/xml-and-xpath-2/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 18:08:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=45</guid>
		<description><![CDATA[XML stands for extensible Markup Language XML is a markup language like HTML. It wonâ€™t have any predefined tags. You must define the tags. XML was designed to describe data and to focus on what data is. If you want to ignore some thing from the parser, you can use CDATA. Namespaces are used to avoid the Name conflicts in XML XPATH: Is a language for defining parts of an xml. xpath uses the following [...]]]></description>
			<content:encoded><![CDATA[<p>XML stands for extensible Markup Language</p>
<p>XML is a markup language like HTML.</p>
<p>It wonâ€™t have any predefined tags. You must define the tags.</p>
<p>XML was designed to describe data and to focus on what data is.</p>
<p>If you want to ignore some thing from the parser, you can use CDATA.</p>
<p>Namespaces are used to avoid the Name conflicts in XML</p>
<p>XPATH:</p>
<p>Is a language for defining parts of an xml.</p>
<p>xpath uses the following steps to select the node of the xml.</p>
<p>1.elements.</p>
<p>2.text</p>
<p>3.attributes</p>
<p>4. name spaces</p>
<p>5.processing Instructions</p>
<p>6.comments</p>
<p>7.document root</p>
<p>some wildcard are there in XPATH.</p>
<p>* &#8211; is used to retrive all the elements in the xml.<br />
@* &#8211; is used to retrive all attribute nodes in the xml</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/30/xml-and-xpath-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>301 Redirect for Apache</title>
		<link>http://www.prabukalaiselvam.com/2009/10/30/301-redirect-for-apache/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/30/301-redirect-for-apache/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 18:06:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=44</guid>
		<description><![CDATA[Write to file called â€˜.htaccessâ€™. The file is named only as an extension.Hidden files must be viewable in operating system. mod_rewrite must be enabled Command Description Redirect 301 /oldpage.html http://www.ournewdomain.com/newpage.html Redirect single file or directory to a newfile or directory on a different domain RewriteEngine onRewriteCond %{HTTP_HOST} ^mysite\.com [NC]RewriteRule (.*) http://www.oursite.com/$1 [L,R=301] Redirect http://oursite.com to http://www.oursite.com. Affects entire domain Entire site:Redirect 301 / http://www.ournewdomain.com/Redirect permanent /old http://www.ournewdomain.com/new Redirect entire domain to a new domainas either [...]]]></description>
			<content:encoded><![CDATA[<table border="1" cellspacing="0" cellpadding="0">
<tbody>
<tr>
<td colspan="2" width="638" valign="top">Write to file called â€˜.htaccessâ€™. The file is named only as an extension.Hidden files must be viewable in operating system. mod_rewrite must be enabled</td>
</tr>
<tr>
<td width="319" valign="top"><em>Command</em></td>
<td width="319" valign="top"><em>Description</em></td>
</tr>
<tr>
<td width="319" valign="top">Redirect 301 /oldpage.html http://www.ournewdomain.com/newpage.html</td>
<td width="319" valign="top">Redirect single file or directory to a newfile or directory on a different domain</td>
</tr>
<tr>
<td width="319" valign="top">RewriteEngine onRewriteCond %{HTTP_HOST} ^mysite\.com [NC]RewriteRule (.*) http://www.oursite.com/$1 [L,R=301]</td>
<td width="319" valign="top">Redirect http://oursite.com to http://www.oursite.com. Affects entire domain</td>
</tr>
<tr>
<td width="319" valign="top">Entire site:Redirect 301 / http://www.ournewdomain.com/Redirect permanent /old http://www.ournewdomain.com/new</td>
<td width="319" valign="top">Redirect entire domain to a new domainas either a 301 (recommended</td>
</tr>
</tbody>
</table>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/30/301-redirect-for-apache/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Important SEO</title>
		<link>http://www.prabukalaiselvam.com/2009/10/23/important-seo/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/23/important-seo/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:57:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=41</guid>
		<description><![CDATA[When I am searching in google I saw some important SEO tips. IÂ shared that one here. Important SEO HTML tags Title Tag &#60;head&#62; &#60;title&#62;Keyword&#60;/title&#62; &#60;/head&#62; â€”â€”â€”â€”â€”â€”â€”â€“ H1,H2,H3 &#60;h1&#62;Most Important&#60;/h1&#62; &#60;h2&#62;Second Most Important&#60;/h2&#62; &#60;h3&#62;Third Most Important&#60;/h3&#62; â€”â€”â€”â€”â€”â€”â€”â€”â€” Bold, Strong (Same Worth) &#60;b&#62;Keyword&#60;/b&#62; &#60;strong&#62;Keyword&#60;/strong&#62; â€”â€”â€”â€”â€”â€”â€”â€”- Image (XHTML) &#60;img src=â€keyword.jpgâ€ mce_src=â€keyword.jpgâ€ alt=â€keywordâ€ /&#62; â€”â€”â€”â€”â€”â€”â€”â€”â€”- Hyperlink &#60;a href=â€http://www.mysite.com/webpage.htmlâ€ mce_href=â€http://www.mysite.com/webpage.htmlâ€ title=â€keywordâ€&#62;Keyword in Anchor Text&#60;/a&#62; Hyperlink (No Followed) &#60;a href=â€http://www.mysite.com/webpage.htmlâ€ mce_href=â€http://www.mysite.com/webpage.htmlâ€ title=â€keywordâ€ rel=â€nofollowâ€&#62;Keyword in Anchor Text&#60;/a&#62; Search Engine Indexing Limits *Does [...]]]></description>
			<content:encoded><![CDATA[<p><em><strong>When I am searching in google I saw some important SEO tips. IÂ shared that one here. </strong></em></p>
<p><em><strong><span style="text-decoration: underline;">Important SEO HTML tags</span></strong></em></p>
<p><em><strong>Title Tag </strong></em></p>
<p>&lt;head&gt;</p>
<p>&lt;title&gt;Keyword&lt;/title&gt;</p>
<p>&lt;/head&gt;</p>
<p>â€”â€”â€”â€”â€”â€”â€”â€“</p>
<p><em><strong>H1,H2,H3</strong></em></p>
<p>&lt;h1&gt;Most Important&lt;/h1&gt;</p>
<p>&lt;h2&gt;Second Most Important&lt;/h2&gt;</p>
<p>&lt;h3&gt;Third Most Important&lt;/h3&gt;</p>
<p>â€”â€”â€”â€”â€”â€”â€”â€”â€”</p>
<p><em><strong>Bold, Strong </strong></em><em>(Same Worth)</em></p>
<p>&lt;b&gt;Keyword&lt;/b&gt;</p>
<p>&lt;strong&gt;Keyword&lt;/strong&gt;</p>
<p>â€”â€”â€”â€”â€”â€”â€”â€”-</p>
<p><strong><em>Image </em><em>(XHTML)</em></strong></p>
<p>&lt;img src=â€keyword.jpgâ€ mce_src=â€keyword.jpgâ€ alt=â€keywordâ€ /&gt;</p>
<p>â€”â€”â€”â€”â€”â€”â€”â€”â€”-</p>
<p><em><strong>Hyperlink</strong></em></p>
<p>&lt;a href=â€http://www.mysite.com/webpage.htmlâ€ mce_href=â€http://www.mysite.com/webpage.htmlâ€ title=â€keywordâ€&gt;Keyword</p>
<p>in Anchor Text&lt;/a&gt;</p>
<p><em><strong>Hyperlink </strong></em><em>(No Followed)</em></p>
<p>&lt;a href=â€http://www.mysite.com/webpage.htmlâ€ mce_href=â€http://www.mysite.com/webpage.htmlâ€ title=â€keywordâ€</p>
<p>rel=â€nofollowâ€&gt;Keyword in Anchor Text&lt;/a&gt;</p>
<p><em><strong><span style="text-decoration: underline;">Search Engine Indexing Limits</span></strong></em></p>
<p><strong>*Does not apply to websites with significant authority</strong></p>
<p><em><strong>Page File Size</strong></em></p>
<p>No more than 150 kilobytes <em>(Before Images, CSS and other Attachments)</em></p>
<p><strong><em>Amount of </em><em>links</em></strong></p>
<p>No more than 100 unique links per page</p>
<p><em><strong>Title </strong></em></p>
<p>No more than 70 characters</p>
<p><em><strong>Meta Description</strong></em></p>
<p>No more than 155 characters</p>
<p><strong><em>Parameters in </em><em>URL</em></strong></p>
<p>No more than 2</p>
<p><strong>Bad Example:</strong></p>
<p><a href="http://www.mysite.com/brands.php?object=1&amp;type=2&amp;kind=3&amp;node=5&amp;arg=6">http://www.mysite.com/brands.php?object=1&amp;type=2&amp;kind=3&amp;node=5&amp;arg=6</a></p>
<p><strong>Good Example:</strong></p>
<p><a href="http://www.mysite.com/brands.php?nike">http://www.mysite.com/brands.php?nike</a></p>
<p><em><strong>Depth of URL</strong></em></p>
<p>No more than 4</p>
<p><strong>Bad Example:</strong></p>
<p><a href="http://www.mysite.com/people/places/things/noun/danny/car">http://www.mysite.com/people/places/things/noun/danny/car</a></p>
<p><em>*Best Practice</em></p>
<p><strong>Good Example:</strong></p>
<p><a href="http://www.mysite.com/people/danny/">http://www.mysite.com/people/danny/</a></p>
<p><em><strong><span style="text-decoration: underline;">Default Locations Search Engines Look for Sitemaps</span></strong></em></p>
<p><em><strong></strong></em> http://www.mysite.com/sitemap.xmlhttp://www.mysite.com/sitemap.xml.gzhttp://www.mysite.com/sitemap.gz</p>
<p>Visit http://www.xml-sitemaps.com/ for a free sitemap</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/23/important-seo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Best Practices &#8211; Javascript</title>
		<link>http://www.prabukalaiselvam.com/2009/10/23/best-practices-javascript/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/23/best-practices-javascript/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:56:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=39</guid>
		<description><![CDATA[1.use === instead of == 2. Avoid to use short-hand if(condition) variable = true Consider this : if(condition) { variable = true; } 3. Place scripts at the bottom of your page 4. Declare variables outside of the for statement 5. reduce globals 6. Comment your code. 7. Dont pass a String  to &#8220;Setinterval&#8221; or &#8220;SetTimeOut&#8221; 8.Dont use the â€œwithâ€ statement 9.use {} instead of new object() 10. use [] instead of new Array() var [...]]]></description>
			<content:encoded><![CDATA[<ul>
<li>1.use === instead of ==
</li>
<li>2. Avoid to use short-hand if(condition) variable = true Consider this : if(condition) { variable = true; }
</li>
<li>3. Place scripts at the bottom of your page
</li>
<li>4. Declare variables outside of the for statement
</li>
<li>5. reduce globals
</li>
<li>6. Comment your code.
</li>
<li>7. Dont pass a String  to &#8220;Setinterval&#8221; or &#8220;SetTimeOut&#8221;
</li>
<li>8.Dont use the â€œwithâ€ statement
</li>
<li>9.use {} instead of new object()
</li>
<li>10. use [] instead of new Array() var a = new Array(); a[0] = &#8220;prabu&#8221;; a[1  ="Siva"; instead of that , var a= ["prabu","siva"];
</li>
<li>11. Always use semi colons
</li>
<li>12. Self-executing Functions. ( function do() { return { name : &#8220;prabu&#8221;, lastname : &#8220;kalaiselvam&#8221; }; })();</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/23/best-practices-javascript/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Excel Creation &#8211; Multiple worksheets in php</title>
		<link>http://www.prabukalaiselvam.com/2009/10/23/excel-creation-multiple-worksheets-in-php/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/23/excel-creation-multiple-worksheets-in-php/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:54:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=37</guid>
		<description><![CDATA[After spending few days i find a format to generate excel with multiple work sheets. Based on that format , I created my own functions for creating excel with multiple work sheets with out using any third party tool. Creating Header for excel function header_excel(){ $header = &#60;&#60;&#60;EOH &#60;?xml version=â€1.0â€³?&#62; &#60;?mso-application progid=â€Excel.Sheetâ€?&#62; &#60;Workbook xmlns=â€urn:schemas-microsoft-com:office:spreadsheetâ€ xmlns:o=â€urn:schemas-microsoft-com:office:officeâ€ xmlns:x=â€urn:schemas-microsoft-com:office:excelâ€ xmlns:ss=â€urn:schemas-microsoft-com:office:spreadsheetâ€ xmlns:html=â€http://www.w3.org/TR/REC-html40â€³&#62; &#60;DocumentProperties xmlns=â€urn:schemas-microsoft-com:office:officeâ€&#62; &#60;Author&#62;Author Name&#60;/Author&#62; &#60;LastAuthor&#62;Author Name&#60;/LastAuthor&#62; &#60;Created&#62;Created Date&#60;/Created&#62; &#60;Company&#62;Company Name&#60;/Company&#62; &#60;Version&#62;Version&#60;/Version&#62; &#60;/DocumentProperties&#62; &#60;ExcelWorkbook xmlns=â€urn:schemas-microsoft-com:office:excelâ€&#62; &#60;WindowHeight&#62;12240&#60;/WindowHeight&#62; &#60;WindowWidth&#62;24855&#60;/WindowWidth&#62; &#60;WindowTopX&#62;240&#60;/WindowTopX&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>After spending few days i find a format to generate excel with multiple work sheets.</p>
<p>Based on that format , I created my own functions for creating excel with multiple work sheets with out using any third party tool.</p>
<p><strong>Creating Header for excel</strong></p>
<p>function header_excel(){<br />
$header = &lt;&lt;&lt;EOH<br />
&lt;?xml version=â€1.0â€³?&gt;<br />
&lt;?mso-application progid=â€Excel.Sheetâ€?&gt;<br />
&lt;Workbook xmlns=â€urn:schemas-microsoft-com:office:spreadsheetâ€<br />
xmlns:o=â€urn:schemas-microsoft-com:office:officeâ€<br />
xmlns:x=â€urn:schemas-microsoft-com:office:excelâ€<br />
xmlns:ss=â€urn:schemas-microsoft-com:office:spreadsheetâ€<br />
xmlns:html=â€http://www.w3.org/TR/REC-html40â€³&gt;<br />
&lt;DocumentProperties xmlns=â€urn:schemas-microsoft-com:office:officeâ€&gt;<br />
&lt;Author&gt;<strong>Author Name</strong>&lt;/Author&gt;<br />
&lt;LastAuthor&gt;<strong>Author Name</strong>&lt;/LastAuthor&gt;<br />
&lt;Created&gt;<strong>Created Date</strong>&lt;/Created&gt;<br />
&lt;Company&gt;<strong>Company Name</strong>&lt;/Company&gt;<br />
&lt;Version&gt;<strong>Version</strong>&lt;/Version&gt;<br />
&lt;/DocumentProperties&gt;<br />
&lt;ExcelWorkbook xmlns=â€urn:schemas-microsoft-com:office:excelâ€&gt;<br />
&lt;WindowHeight&gt;<strong>12240</strong>&lt;/WindowHeight&gt;<br />
&lt;WindowWidth&gt;<strong>24855</strong>&lt;/WindowWidth&gt;<br />
&lt;WindowTopX&gt;<strong>240</strong>&lt;/WindowTopX&gt;<br />
&lt;WindowTopY&gt;<strong>105</strong>&lt;/WindowTopY&gt;<br />
&lt;ProtectStructure&gt;False&lt;/ProtectStructure&gt;<br />
&lt;ProtectWindows&gt;False&lt;/ProtectWindows&gt;<br />
&lt;/ExcelWorkbook&gt;<br />
&lt;Styles&gt;<br />
&lt;Style ss:ID=â€Defaultâ€ ss:Name=â€Normalâ€&gt;<br />
&lt;Alignment ss:Vertical=â€Bottomâ€/&gt;<br />
&lt;Borders/&gt;<br />
&lt;Font ss:FontName=â€Calibriâ€ x:Family=â€Swissâ€ ss:Size=â€11â€³ ss:Color=â€#000000â€³/&gt;<br />
&lt;Interior/&gt;<br />
&lt;NumberFormat/&gt;<br />
&lt;Protection/&gt;<br />
&lt;/Style&gt;<br />
&lt;Style ss:ID=â€s18â€³ ss:Name=â€Currencyâ€&gt;<br />
&lt;NumberFormat<br />
ss:Format=â€_(â€$â€* #,##0.00_);_(â€$â€* \(#,##0.00\);_(â€$â€* â€œ-â€??_);_(@_)â€/&gt;<br />
&lt;/Style&gt;<br />
&lt;Style ss:ID=â€s66â€³&gt;<br />
&lt;Font ss:FontName=â€Calibriâ€ x:Family=â€Swissâ€ ss:Size=â€11â€³ ss:Color=â€#000000â€³/&gt;<br />
&lt;/Style&gt;<br />
&lt;Style ss:ID=â€s68â€³ ss:Parent=â€s18â€³&gt;<br />
&lt;Font ss:FontName=â€Calibriâ€ x:Family=â€Swissâ€ ss:Size=â€11â€³ ss:Color=â€#000000â€³/&gt;<br />
&lt;/Style&gt;<br />
&lt;Style ss:ID=â€s69â€³&gt;<br />
&lt;Alignment ss:Horizontal=â€Centerâ€ ss:Vertical=â€Bottomâ€/&gt;<br />
&lt;Font ss:FontName=â€Calibriâ€ x:Family=â€Swissâ€ ss:Size=â€11â€³ ss:Color=â€#000000â€³<br />
ss:Bold=â€1â€³/&gt;<br />
&lt;/Style&gt;<br />
&lt;Style ss:ID=â€s70â€³ ss:Parent=â€s18â€³&gt;<br />
&lt;Alignment ss:Horizontal=â€Centerâ€ ss:Vertical=â€Bottomâ€/&gt;<br />
&lt;Font ss:FontName=â€Calibriâ€ x:Family=â€Swissâ€ ss:Size=â€11â€³ ss:Color=â€#000000â€³<br />
ss:Bold=â€1â€³/&gt;<br />
&lt;/Style&gt;<br />
&lt;Style ss:ID=â€s73â€³&gt;<br />
&lt;Alignment ss:Horizontal=â€Centerâ€ ss:Vertical=â€Bottomâ€/&gt;<br />
&lt;Font ss:FontName=â€Calibriâ€ x:Family=â€Swissâ€ ss:Size=â€11â€³ ss:Color=â€#000000â€³/&gt;<br />
&lt;/Style&gt;<br />
&lt;/Styles&gt;<br />
EOH;<br />
return $header;<br />
}</p>
<p><strong>2. By using the below method we can able to add work sheets </strong></p>
<p><strong> $sheetnameÂ  &#8211; Name of the worksheet</strong><br />
function add_excel_worksheet($sheetname) {<br />
$worksheet_name = â€˜&lt;Worksheet ss:Name=â€â€˜.$sheetname.â€™â€&gt;â€™;<br />
return $worksheet_name;<br />
}<br />
<strong>3. This Method is used to Add the content for the particular work sheet</strong></p>
<p><strong>$cnt,$cnt1 &#8211; total number of row and column.</strong></p>
<p>function formatDataHeader($cnt,$cnt1) {</p>
<p>$table_header = â€˜&lt;Table ss:ExpandedColumnCount=â€â€˜.$cnt1.â€™â€ ss:ExpandedRowCount=â€â€˜.$cnt.â€™â€ x:FullColumns=â€1â€³<br />
x:FullRows=â€1â€³ ss:StyleID=â€s66â€³ ss:DefaultRowHeight=â€15â€³&gt;<br />
&lt;Column ss:StyleID=â€s73â€³ ss:AutoFitWidth=â€1â€³ ss:Width=â€200â€³/&gt;<br />
&lt;Column ss:StyleID=â€s66â€³ ss:AutoFitWidth=â€1â€³ ss:Width=â€135â€³/&gt;<br />
&lt;Column ss:StyleID=â€s68â€³ ss:AutoFitWidth=â€1â€³ ss:Width=â€82.5â€³/&gt;â€™;</p>
<p>/*$table_row = â€˜&lt;Row ss:StyleID=â€s69â€³&gt;â€™;<br />
$column_cnt = count($headers);<br />
$column_cont = â€œâ€;<br />
for($i=0;$i&lt;$column_cnt;$i++) {<br />
$column_cont .= â€˜&lt;Cell&gt;&lt;Data ss:Type=â€Stringâ€&gt;â€™.$headers[$i].â€™&lt;/Data&gt;&lt;/Cell&gt;â€™;<br />
}<br />
$table_row_end =â€&lt;/Row&gt;â€;</p>
<p>$table = $table_header.$table_row.$column_cnt.$table_row_end;*/<br />
return $table_header;<br />
}<br />
function formatDataContent($contents) {</p>
<p>$table_row = â€˜&lt;Row ss:StyleID=â€s69â€³&gt;â€™;<br />
$column_cnt = count($contents);<br />
$column_cont = â€œâ€;<br />
for($i=0;$i&lt;$column_cnt;$i++) {<br />
$column_cont .= â€˜&lt;Cell&gt;&lt;Data ss:Type=â€Stringâ€&gt;â€™.$contents[$i].â€™&lt;/Data&gt;&lt;/Cell&gt;â€™;<br />
}<br />
$table_row_end =â€&lt;/Row&gt;â€;</p>
<p>$table_cont= $table_row.$column_cont.$table_row_end;<br />
return $table_cont;<br />
}</p>
<p><strong>4. This is used to close content tag for particular worksheet.</strong></p>
<p>function closetableNode() {<br />
return â€œ&lt;/Table&gt;â€;<br />
}<br />
<strong>5. The below method is used to close the worksheet.</strong></p>
<p>function close_excel_worksheet() {<br />
$worksheet_close = â€˜&lt;WorksheetOptions xmlns=â€urn:schemas-microsoft-com:office:excelâ€&gt;<br />
&lt;PageSetup&gt;<br />
&lt;Header x:Margin=â€0.3â€³/&gt;<br />
&lt;Footer x:Margin=â€0.3â€³/&gt;<br />
&lt;PageMargins x:Bottom=â€0.75â€³ x:Left=â€0.7â€³ x:Right=â€0.7â€³ x:Top=â€0.75â€³/&gt;<br />
&lt;/PageSetup&gt;<br />
&lt;Print&gt;<br />
&lt;ValidPrinterInfo/&gt;<br />
&lt;HorizontalResolution&gt;600&lt;/HorizontalResolution&gt;<br />
&lt;VerticalResolution&gt;0&lt;/VerticalResolution&gt;<br />
&lt;/Print&gt;<br />
&lt;Selected/&gt;<br />
&lt;ProtectObjects&gt;False&lt;/ProtectObjects&gt;<br />
&lt;ProtectScenarios&gt;False&lt;/ProtectScenarios&gt;<br />
&lt;/WorksheetOptions&gt;<br />
&lt;/Worksheet&gt;â€™;<br />
return $worksheet_close;<br />
}<br />
<strong>5. The below method is used to close the workbook.</strong></p>
<p>function close_workbook() {<br />
$workbook_close = â€œ&lt;/Workbook&gt;â€;<br />
return $workbook_close;<br />
}</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/23/excel-creation-multiple-worksheets-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache Log Format.</title>
		<link>http://www.prabukalaiselvam.com/2009/10/23/apache-log-format/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/23/apache-log-format/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:53:34 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=35</guid>
		<description><![CDATA[Apache logs : Actually we have two types of log files in the apache server. 1. Access_log &#8211; used to store the information ,regarding the request served by the server. 2. error_logÂ Â Â  -Â  used to store the error information. we can able to customize our own log format. sample code: LogFormat â€œ%h %l %u %t \â€%r\â€ %&#62;s %bâ€ common LogFormat â€œ%h %l %u %t \â€%r\â€ %&#62;s %bâ€ \â€%{Referer}i\â€ \â€%{User-agent}i\â€&#8221; combined %h: The IP address of [...]]]></description>
			<content:encoded><![CDATA[<p>Apache logs :</p>
<p>Actually we have two types of log files in the apache server.</p>
<p>1. Access_log &#8211; used to store the information ,regarding the request served by the server.<br />
2. error_logÂ Â Â  -Â  used to store the error information.</p>
<p>we can able to customize our own log format.</p>
<p>sample code:</p>
<p>LogFormat â€œ%h %l %u %t \â€%r\â€ %&gt;s %bâ€ common<br />
LogFormat â€œ%h %l %u %t \â€%r\â€ %&gt;s %bâ€<br />
\â€%{Referer}i\â€ \â€%{User-agent}i\â€&#8221; combined</p>
<p><strong>%h: The IP address of the client that sent the request to the web server, or the clientâ€™s hostname if you have HostNameLookups enabled<br />
%u: The user id of the user who sent the request determined by HTTP authentication<br />
%t: Time when the request was received by the server.<br />
%r: Text of the original request line from the client including the HTTP method used, the resource requested, and the HTTP protocol version used by the clientâ€™s browser<br />
%&gt;s: The final HTTP request status code that the web server sends back to the client<br />
%b: The size in bytes of the object sent to the client in response to the request excluding the response headers</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/23/apache-log-format/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatic Server Restart in linux.</title>
		<link>http://www.prabukalaiselvam.com/2009/10/23/automatic-server-restart-in-linux/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/23/automatic-server-restart-in-linux/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:52:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=33</guid>
		<description><![CDATA[In windows , if the server shutdown or crashed ,it will automatically restart , if we installed apache as service. But i linux server we needs to write a shell program to do this. #!/bin/bash if [ â€˜ps -waux &#124; grep -v grep &#124; grep -c httpdâ€™ -lt 1 ]; then apachectl restart; fi By using the above script we can able to achive this. 1. We needs to give executable permission for the scriptÂ and [...]]]></description>
			<content:encoded><![CDATA[<p>In windows , if the server shutdown or crashed ,it will automatically restart , if we installed apache as service.</p>
<p>But i linux server we needs to write a shell program to do this.</p>
<p><strong>#!/bin/bash<br />
if [ â€˜ps -waux | grep -v grep | grep -c httpdâ€™ -lt 1<br />
]; then apachectl restart; fi</strong></p>
<p>By using the above script we can able to achive this.</p>
<p>1. We needs to give executable permission for the scriptÂ and we needsÂ to add this script in cron configuration.</p>
<p>Like this we can also able to send aÂ notification Â , when the server shutdown.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/23/automatic-server-restart-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Imap configuration in php</title>
		<link>http://www.prabukalaiselvam.com/2009/10/23/imap-configuration-in-php/</link>
		<comments>http://www.prabukalaiselvam.com/2009/10/23/imap-configuration-in-php/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 12:51:00 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<guid isPermaLink="false">http://www.prabukalaiselvam.com/wordpress/?p=31</guid>
		<description><![CDATA[map &#8211; Used to communicate with the mail server and reading mails. Steps to configure Imap : 1. Download the rpm package for imap ,it depends on the os installed. 2. Install that rpm using rpm -i rpmpackage . 3. Once the insallation was finished, the imap.so file was placed in the corresponding php module folder. 4. We needs to enable the pop3 port for mail server. Once all these are finished,we can able to [...]]]></description>
			<content:encoded><![CDATA[<p>map &#8211; Used to communicate with the mail server and reading mails.</p>
<p>Steps to configure Imap :</p>
<p>1. Download the rpm package for imap ,it depends on the os installed.</p>
<p>2. Install that rpm using rpm -i rpmpackage .</p>
<p>3. Once the insallation was finished, the imap.so file was placed in the corresponding php module folder.</p>
<p>4. We needs to enable the pop3 port for mail server.</p>
<p>Once all these are finished,we can able to read the mails from the mail server</p>
]]></content:encoded>
			<wfw:commentRss>http://www.prabukalaiselvam.com/2009/10/23/imap-configuration-in-php/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
