<?xml version="1.0"?>
								<rss version="1.0">
									<channel>
									<title>php tips</title>
									<link>http://www.fropper.com/ezBlog/phpATfropper</link>
									<description>php tips and tacts n some unseen functions yet powerfull.....</description>
									<language>en-us</language>
									<pubDate>2008-Nov-07, 12:09:51</pubDate>
									<lastBuildDate>2008-Nov-13, 11:06:12</lastBuildDate>
				
					<item>
						<title>OpenSocial's First Birthday: Detailed Agenda -- November 13 in San Francisco</title>
						<link>http://www.fropper.com/post/24292</link>
						<description><![CDATA[Hi , friendz 
 
Next&nbsp; thursday, November 13,&nbsp; is the official event for OpenSocial's first birthday being hosted by the OpenSocial Foundation at MySpace's SF office (SOMA). 
 
Highlights of event 
 
* OpenSocial: State of the Union 
 
* App Developers sharing their experiences:  
&nbsp; &nbsp; &nbsp;&nbsp; PhotoBuzz, RockYou, and PixVerse 
 
* OpenSocial 0.9: What does it mean for me? 
 
* Demos of Developer Tools: 
&nbsp; &nbsp;&nbsp; OpenSocial Dev App, zembly, and iWidgets 
 
* &quot;Global Container Crawl&quot; programming contest 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; How many containers can you get running on? 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Engineers from around the world will be on-hand to help 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; including: hi5, Hyves, iGoogle, LinkedIn, MySpace, Ning, orkut, Viadeo, Yahoo!&nbsp; among&nbsp;&nbsp;  
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; others 
 
* Breakout sessions for discussions and prototyping 
 
 
Check the full post 
http://opensocialapis.blogspot.com/2008/11/opensocials-first-birthday-detailed.html]]></description>
						<pubDate>Nov 07, '08</pubDate>
					</item>
					
					<item>
						<title>PHP5 Filter Functions</title>
						<link>http://www.fropper.com/post/24286</link>
						<description><![CDATA[ PHP filters are used to validate and filter data coming from insecure sources. e.g. User Inputs...  PHP filter_input() Function  With filter_input() function we can filter out the data from following sources.  1. INPUT_GET 2. INPUT_POST 3. INPUT_COOKIE 4. INPUT_ENV 5. INPUT_SERVER 6. INPUT_SESSION (Not yet implemented) 7. INPUT_REQUEST (Not yet implemented)  this function returns the filtered variable data on success and returns FALSE on the&nbsp; failure or of filter action.  Syntax filter_input(input_type, variable, filter, options)  input_type =&nbsp; Above List of sources. e.g . INPUT_GET , INPUT_POST. variable&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; Variable to be validated. filter&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; =&nbsp; Specifies the ID of the filter to use. Default is FILTER_SANITIZE_STRING.   Here is the list of php filters. ID Name&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 	Description FILTER_CALLBACK------------------Call a user-defined function to filter data FILTER_SANITIZE_STRING-------Strip tags, optionally strip or encode special characters FILTER_SANITIZE_STRIPPED--- 	Alias of &quot;string&quot; filter FILTER_SANITIZE_ENCODED---	URL-encode string, optionally strip or encode special  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; characters FILTER_SANITIZE_SPECIAL_CHARS 	 &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; HTML-escape '&quot;&lt;&gt;&amp; and characters with ASCII value less than  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 32 FILTER_SANITIZE_EMAIL----------Remove all characters, except letters, digits and&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; !#$%&amp;'*+-/=?^_`{|}~@.[] FILTER_SANITIZE_URL------------Remove all characters, except letters, digits and $-_.+!*'(), &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; {}|\\^~[]`&lt;&gt;#%&quot;;/?:@&amp;= FILTER_SANITIZE_NUMBER_INT----Remove all characters, except digits and +- FILTER_SANITIZE_NUMBER_FLOAT----Remove all characters, except digits, +- and optionally  &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .,eE FILTER_SANITIZE_MAGIC_QUOTES----- Apply addslashes() FILTER_UNSAFE_RAW----------------------- Do nothing, optionally strip or encode special  -------------------------------------------------------- characters FILTER_VALIDATE_INT----------------------- Validate value as integer, optionally from the specified  -------------------------------------------------------- range FILTER_VALIDATE_BOOLEAN-------------- 	Return TRUE for &quot;1&quot;, &quot;true&quot;, &quot;on&quot; and &quot;yes&quot;, FALSE for  -------------------------------------------------------- &quot;0&quot;, &quot;false&quot;, &quot;off&quot;, &quot;no&quot;, and &quot;&quot;, NULL otherwise FILTER_VALIDATE_FLOAT------------------- Validate value as float FILTER_VALIDATE_REGEXP---------------- Validate value against regexp, a Perl-compatible  ------------------------------------------------------- regular expression FILTER_VALIDATE_URL--------------------- Validate value as URL, optionally with required  ------------------------------------------------------&nbsp; components FILTER_VALIDATE_EMAIL------------------&nbsp; Validate value as e-mail FILTER_VALIDATE_IP------------------------ Validate value as IP address, optionally only IPv4 or  ------------------------------------------------------ IPv6 or not from private or reserved ranges   &nbsp;  ]]></description>
						<pubDate>Nov 07, '08</pubDate>
					</item>
					
					<item>
						<title>What Is Json ?</title>
						<link>http://www.fropper.com/post/24240</link>
						<description><![CDATA[What is JSON ? 
 
Javascript Object Notation 
 
JSON make easy to interchange between programming language to JavaScript. 
 
JSON is class/library that we can use to convert a variable from PHP variable to JavaScript Variable. 
 
its another way to use javascript on your site and not have to worry about people having it turned off since doesn't require javascrpt tags to actually run it. 
 
 
it make programing in javascript quicker and more effective. 
 
 
It is a Fat-Free Alternative to XML. 
 
It is a new data interchange format. 
 
JSON data can be included from websites outside the domain origin of the web application (avoiding the same-origin limitations of XMLHttpRequest) by using JSON-in-script. 
 
 
JSON can be be used as an alternative to XML representation of data with the added benefits that JSON is easier to &quot;parse&quot; for JavaScript client code 
 
 
Sample code snippet to generate JSON string for php array. 
&lt;?php 
$myArray = Array('a'=&gt;'the first', 'b'=&gt;'is second'); 
 
$json = new JSON(); 
 
echo $json-&gt;convert($myArray); 
?&gt; 
 
 
1.) You can download the JSON.php file from this link: 
 http://mike.teczno.com/JSON/JSON.phps 
 
check out following code. 
 
require_once(&quot;JSON.php&quot;); 
 
$myArray = Array('a'=&gt;'the first', 'b'=&gt;'is second'); 
 
$json = new Services_JSON(); 
 
echo $json-&gt;encode($myArray); 
 
Output : 
&nbsp;{&quot;a&quot;:&quot;the first&quot;,&quot;b&quot;:&quot;is second&quot;} 
 
 
How to turn xml into json: 
 
&nbsp;http://www-128.ibm.com/developerworks/xml/library/x-xml2jsonphp/]]></description>
						<pubDate>Nov 06, '08</pubDate>
					</item>
					
					<item>
						<title>What Is Json ?</title>
						<link>http://www.fropper.com/post/24221</link>
						<description><![CDATA[What is JSON ?  Javascript Object Notation  JSON make easy to interchange between programming language to JavaScript.  JSON is class/library that we can use to convert a variable from PHP variable to JavaScript Variable.  its another way to use javascript on your site and not have to worry about people having it turned off since doesn't require javascrpt tags to actually run it.   it make programing in javascript quicker and more effective.   It is a Fat-Free Alternative to XML.   JSON data can be included from websites outside the domain origin of the web application (avoiding the same-origin limitations of XMLHttpRequest) by using JSON-in-script.   JSON can be be used as an alternative to XML representation of data with the added benefits that JSON is easier to &quot;parse&quot; for JavaScript client code   Sample code snippet to generate JSON string for php array. &lt;?php $myArray = Array('a'=&gt;'the first', 'b'=&gt;'is second');  $json = new JSON();  echo $json-&gt;convert($myArray); ?&gt; testing]]></description>
						<pubDate>Nov 06, '08</pubDate>
					</item>
					
					<item>
						<title>how to check the empty directory in shell script</title>
						<link>http://www.fropper.com/post/24183</link>
						<description><![CDATA[How to check the empty directory in shell script?   This can be easily done with the help ls command. we can simply check the empty directory using following script.  DIR=&quot;/path/to/directory/&quot;  if [ &quot;$(ls -A $DIR)&quot; ]; then &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;Take action $DIR is not Empty&quot; else &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; echo &quot;$DIR is Empty&quot;  You can also assign the output of specific command to a separate variable instead of checking it directly in if condition. e.g.  myVar=`(grep 'stringToSearch' filename.ext)`;  Note: Do not use spaces before and after =.]]></description>
						<pubDate>Nov 05, '08</pubDate>
					</item>
					
					<item>
						<title>How to detect the firebug</title>
						<link>http://www.fropper.com/post/24134</link>
						<description><![CDATA[How to detect the firebug.  I use this to detect the firebug.  &lt;script language=&quot;javascript&quot;&gt; if(typeof window.loadFirebugConsole != &quot;undefined&quot;)  { &nbsp;	alert(&quot;Firebug is enabled..&quot;); }  &lt;/script&gt;]]></description>
						<pubDate>Nov 04, '08</pubDate>
					</item>
					
					<item>
						<title>CSS Properties To JavaScript</title>
						<link>http://www.fropper.com/post/23772</link>
						<description><![CDATA[CSS Property 	JavaScript Reference 
 
background -> background 
background-attachment -> backgroundAttachment 
background-color -> backgroundColor 
background-image 	-> backgroundImage 
background-position 	-> backgroundPosition 
background-repeat 	-> backgroundRepeat 
border 	 -> border  
border-bottom 	 -> borderBottom 
border-bottom-color -> borderBottomColor 
border-bottom-style -> borderBottomStyle 
border-bottom-width 	-> borderBottomWidth 
border-color 	 -> borderColor 
border-left 	 -> borderLeft 
border-left-color 	-> borderLeftColor 
border-left-style 	-> borderLeftStyle 
border-left-width 	-> borderLeftWidth 
border-right 	 -> borderRight 
border-right-color 	-> borderRightColor 
border-right-style 	-> borderRightStyle 
border-right-width 	-> borderRightWidth 
border-style 	 -> borderStyle 
border-top 	 -> borderTop 
border-top-color 	-> borderTopColor 
border-top-style 	-> borderTopStyle 
border-top-width 	-> borderTopWidth 
border-width 	 -> borderWidth 
clear 	 -> clear 
clip 	 -> clip 
color 	 -> color 
cursor 	 -> cursor 
display 	 -> display 
filter 	 -> filter 
font 	 -> font 
font-family 	 -> fontFamily 
font-size 	 -> fontSize 
font-variant 	 -> fontVariant 
font-weight 	 -> fontWeight 
height 	 -> height  
left 	 -> left 
letter-spacing 	 -> letterSpacing 
line-height 	 -> lineHeight 
list-style 	 -> listStyle 
list-style-image 	-> listStyleImage 
list-style-position 	-> listStylePosition 
list-style-type 	-> listStyleType 
margin 	 -> margin 
margin-bottom 	 -> marginBottom 
margin-left 	 -> marginLeft 
margin-right 	 -> marginRight 
margin-top 	 -> marginTop 
overflow 	 -> overflow 
padding 	 -> padding 
padding-bottom 	 -> paddingBottom 
padding-left 	 -> paddingLeft 
padding-right 	 -> paddingRight 
padding-top 	 -> paddingTop 
page-break-after 	-> pageBreakAfter 
page-break-before 	-> pageBreakBefore 
position 	 -> position 
float 	 -> styleFloat 
text-align 	 -> textAlign 
text-decoration 	-> textDecoration 
text-decoration: blink 	-> textDecorationBlink 
text-decoration: line-through 	-> textDecorationLineThrough 
text-decoration: none 	 -> textDecorationNone 
text-decoration: overline 	-> textDecorationOverline 
text-decoration: underline 	-> textDecorationUnderline 
text-indent 	 -> textIndent 
text-transform 	 -> textTransform 
top 	 -> top 
vertical-align 	 -> verticalAlign 
visibility 	 -> visibility 
width 	 -> width 
z-index 	 -> zIndex]]></description>
						<pubDate>Oct 27, '08</pubDate>
					</item>
					
					<item>
						<title>Create Your Orkut Application</title>
						<link>http://www.fropper.com/post/23621</link>
						<description><![CDATA[Steps to create orkut applications. 
 
Platform  
&nbsp;&nbsp;&nbsp; Orkut applications can be created in XML. 
 
1. Start with the sandbox account on http://sandbox.orkut.com . 
&nbsp;&nbsp;&nbsp;&nbsp; Register on http://code.google.com/support/opensocialsignup/  
2. Once your account get active , you can start developing your application in sandbox. 
3. You can add your XML application by clicking on add application tab. 
 
HELP  
http://code.google.com/apis/orkut/docs/orkutdevguide.html 
 
First Time developing application?  
http://code.google.com/apis/orkut/articles/tutorial/tutorial.html]]></description>
						<pubDate>Oct 24, '08</pubDate>
					</item>
					
					<item>
						<title>Memory management in php</title>
						<link>http://www.fropper.com/post/22915</link>
						<description><![CDATA[Fatal error: Allowed memory size of 8388608 bytes exhausted. 
 
sometime PHP script may returns the above error. Normally this error is generated when your script exchausted and used up the default memory requirement of 8 MB memory allocation.  
 
* Default memory limit is set in php.ini file ( php configuration file.)  
* memory_limit = 8M; 
 
How can we manage with the memory problems comes in some php scripts? 
you should check following things when such kind of memory errors occurs in your script. 
 
1. check the default memory_limit variable in your php.ini file. 
&nbsp;&nbsp;&nbsp; memory_limit = 8M; 
&nbsp;&nbsp;&nbsp; you can change this memory limit and again check for the error. 
 
&nbsp;&nbsp; a. Edit in php.ini 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; memory_limit = 12M;  
&nbsp; &nbsp; &nbsp; &nbsp; restart the apache service. 
&nbsp;&nbsp; b. code Level 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; @ini_set('memory_limit', '12M'); 
&nbsp; c. htaccess 
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; php_value memory_limit 12M  
___________________________________________________________________ 
 
2. If the error is not resolved after above step, then you should start debugging your code in order to find out the reason of memory limit exceed. 
&nbsp;&nbsp;&nbsp; You have to first find out at what position in your code the memory limit is exceeding. you can use the php's built in function for this purpose. 
 
Function description 
 
memory_get_usage &mdash; This function returns the amount of memory allocated to PHP. 
 
Syntax : int memory_get_usage ( true / false ); 
 
It returns the amount of memory, in bytes, that's currently being allocated to your PHP script. 
 
Set the option to this function to TRUE to get the real size of memory allocated from system. If not set or FALSE only the memory used by emalloc() is returned. 
 
How to use this function 
 
1. Write this code ( echo memory_get_usage( true ); ) repeteadly after some no of lines.  
2. Run it in browser 
3. Compare the counts given by each echo and you can check which block of your code needs extra memory. 
4. Once you identify the block of code which needs extra memory then you can start deallocating the unused memory spaces allocated by some unused variables and some infinite loops. 
5. use following wherever necessary. 
&nbsp;&nbsp;&nbsp;&nbsp; a. unset($var_name); 
&nbsp;&nbsp;&nbsp;&nbsp; b. mysql_free_result($result_set); &mdash; Free result memory 
&nbsp;&nbsp;&nbsp;&nbsp; c. Look for include(&quot;file.php&quot;) in loops, by mistake. 
&nbsp;&nbsp;&nbsp;&nbsp; Just try to free the memory everywhere if the variable / array is no longer used. 
6. Best of luck. 
 
 
Function description 
 
bool mysql_free_result ( resource $result )  
It frees all the memory associated with the result identifier result . ]]></description>
						<pubDate>Oct 10, '08</pubDate>
					</item>
					
					<item>
						<title>Shell Script</title>
						<link>http://www.fropper.com/post/22830</link>
						<description><![CDATA[A shell is a command line interpretor. It takes commands and executes them. We can run N no of common commands one after another by putting them in one file( shell script ) in proper order.  Creating a simple shell file  suppose you want to view the some files in some directory regularly. so you need to use following command: find /path/to/folder/*.ext&nbsp; -mtime 30 -type f -exec ls -lh {} \;  This will display all files which are 30 days older from given folder path .  we can do this task in shell script as follows  #!/bin/sh find /path/to/folder/*.ext -mtime 30 -type f -exec ls -lh {} \; exit 0 _______________________________________________________________  How to create shell script file with vi editor.  1. vi file_name.sh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - create the shell file  2. First statement of shell file should be  &nbsp;&nbsp;&nbsp; #!/bin/sh&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - start of shell script  3. write all commands one after another.&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - all commands to be executed  4.End of shell script&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; - end of shell script &nbsp;&nbsp; exit 0   5.come out of vi editor and run the shell file&nbsp; - run the shell file &nbsp; &nbsp; ./file_name.sh  simple.................  _______________________________________________________________&nbsp;&nbsp;   Passing value to shell script We can also pass the arguments to our shell script. In our example we are displaying all the files which are modified 30 days before. Now suppose we want to see all the files which are&nbsp; modified 10 days before , then we need to make change in our shell script. To avoid this we can pass the date count to our script from command line. Just go through the sample file given below.  e.g. #!/bin/sh clear echo *SCRIPT NAME = $0 echo *No Of Parameters = $# echo *Parameters List = $* echo List of files modified before $1 days. find /path/to/folder/*.ext -mtime $1 -type f -exec ls -lh {} \; exit 0   * echo is used to write output. * $0 gives the script name. * $# gives no of parameter count. * $* gives a string of all parameters to script * Individual argument can be accessed with $1,$2,$3,$4,$5............. &nbsp; $1 for first parameter and so on..  How to execute  ./file_name.sh +10 In this case +10 is passed to our shell script as first parameter and thus script runs accordingly. &nbsp;]]></description>
						<pubDate>Oct 08, '08</pubDate>
					</item>
					</channel>
								</rss>