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

<channel>
	<title>DocuMAX &#187; Web</title>
	<atom:link href="http://www.documax.info/category/web/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.documax.info</link>
	<description>The source for information</description>
	<lastBuildDate>Mon, 01 Mar 2010 17:25:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>MySQL Database Handling in PHP &#8211; Web</title>
		<link>http://www.documax.info/2010/03/01/mysql_database_handling_in_php_-_web/</link>
		<comments>http://www.documax.info/2010/03/01/mysql_database_handling_in_php_-_web/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 09:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Database]]></category>
		<category><![CDATA[Handling]]></category>
		<category><![CDATA[in]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.documax.info/2007/12/11/mysql_database_handling_in_php_-_web/</guid>
		<description><![CDATA[MySQL Database Handling in PHP plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>MySQL Database Handling in PHP<br />
 John L</p>
<p>Most interactive websites nowadays require data to be presented dynamically and interactively based on input from the user. For example, a customer may need to log into a retail website to check his purchasing history. In this instance, the website would have stored two types of data in order for the customer to perform the check</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/03/01/mysql_database_handling_in_php_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find good Web Hosting for your site! &#8211; Web</title>
		<link>http://www.documax.info/2010/02/28/how_to_find_good_web_hosting_for_your_site_-_web/</link>
		<comments>http://www.documax.info/2010/02/28/how_to_find_good_web_hosting_for_your_site_-_web/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 07:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Find]]></category>
		<category><![CDATA[For]]></category>
		<category><![CDATA[Good]]></category>
		<category><![CDATA[Hosting]]></category>
		<category><![CDATA[How]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[To]]></category>
		<category><![CDATA[Your]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/11/10/how_to_find_good_web_hosting_for_your_site_-_web/</guid>
		<description><![CDATA[How to find good Web Hosting for your site! plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>How to find good Web Hosting for your site!<br />
 Jonathan White</p>
<p>When building your first site the main things that you will probably think about is what types of content you will be adding to your site, how you are going to get visitors to your site and how you are going to generate good revenue from your site.<br />
Well, all of the things mentioned above are crucial things to consider, but then again, what</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/28/how_to_find_good_web_hosting_for_your_site_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>what Do Your Site Statistics Mean, Anyway &#8211; Web</title>
		<link>http://www.documax.info/2010/02/28/what_do_your_site_statistics_mean_anyway_-_web/</link>
		<comments>http://www.documax.info/2010/02/28/what_do_your_site_statistics_mean_anyway_-_web/#comments</comments>
		<pubDate>Sun, 28 Feb 2010 02:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Anyway]]></category>
		<category><![CDATA[Do]]></category>
		<category><![CDATA[Mean]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[Statistics]]></category>
		<category><![CDATA[What]]></category>
		<category><![CDATA[Your]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/11/05/what_do_your_site_statistics_mean_anyway_-_web/</guid>
		<description><![CDATA[what Do Your Site Statistics Mean, Anyway plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>what Do Your Site Statistics Mean, Anyway<br />
 Karyn Greenstreet</p>
<p>What Do Your Site Statistics Mean, Anyway<br />
The purpose of analyzing your web site statistics is to look for trends and to research the success level of your marketing campaigns.  The numbers themselves can be misleading, as statistical packages count</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/28/what_do_your_site_statistics_mean_anyway_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Building a Church Website &#8211; Web</title>
		<link>http://www.documax.info/2010/02/27/building_a_church_website_-_web/</link>
		<comments>http://www.documax.info/2010/02/27/building_a_church_website_-_web/#comments</comments>
		<pubDate>Sat, 27 Feb 2010 02:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[Building]]></category>
		<category><![CDATA[Church]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/10/11/building_a_church_website_-_web/</guid>
		<description><![CDATA[Building a Church Website plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>Building a Church Website<br />
 Chris Ryerson</p>
<p>Have you been asked to build a website for your church  Building  There are thousands of people building websites everyday.  It is becoming increasingly important for many small organizations and groups to build their online presence.  This helps in getting their ideals, goals, and mission out to the general public.  Therefore at an increasing rate many of us with computer skills are asked by organizations to put together a website.  This happened to me about two years ago when the school I worked at asked me to build a website for them to help advertise their special arts programs.<br />
The only problem with this is many of us do not have the skills nor the time to build and keep up a whole site.  It takes a lot to be the webmaster of a website and it is no simple task.  However often it is too expensive to pay a web designer to build a custom site for an organization and so the task often falls to an armature or even some one with no experience.  This is what happened to me with the website that I build for my school.  I didnt have the first clue about website design or html.  So that forced me to learn the basics and use what tutorials and templates that i could find online.  I made it through the experience and like many others found that it was a lot of fun.  Therefore I started building a bunch of other sites.  I would bet that this happens to many.<br />
This article will help the beginning web designer or even volunteer set up a basic Church website.  However since there is not a lot of money to spend on the project and often people have really unrealistic ideas about what a website can do we will give you some good guidelines and tips to get started.<br />
The first thing that you need to have a real good idea about is your level of experience with building websites.  It is really important to be honest with yourself and the church that you belong to in order to create a realistic expectation.  If you are a beginner then it is fine to admit that, we all have to start somewhere.  However, if you are a beginner dont plan on building an elaborate SQL  php backend that can be dynamically updated or anything like that.  Below I have provided some basic definitions of skill level that might help you assess where you are at.<br />
Beginner - You are this level fall anywhere in between never setting up a site to having built a site or two with an online website builder or a pre made website like those provided on Yahoo, or AngelFire.<br />
Intermediate - If you have either set up a website with an online builder and customized the site some or built a website using a template then you fall into the intermediate category.<br />
Advanced -  You have set up many sites before and often use templates for ideas but tweak them so much they hardly resemble the template when you are finished.<br />
How you choose to build your website depends largely on two factors, your time commitment to the project and your skill level.  These two factors have a strong correlation between them.  Meaning if you have lots of time and are a beginning you will be able to build more advanced websites.  However if you are an advanced designer and have very little time to build another site then you will want to go with something very basic.  If you fall on either the not enough time or not enough experience end of the spectrum then you should really consider buying a template to either make your site or at least get you started.  However if you are at the intermediate or advanced level and have time then you should forgo the template and create a really cool design yourself.<br />
Some of the tools that you will need to build any website are included below:<br />
Graphics Software - The standard for creating website is Adobe Photoshop.  Photoshop has a great add-on product that comes with the software that allows you to slice the images you create and export them as html.<br />
HTML editor - This can be anything from Microsoft Notepad all the way up to a high end WYSIWYG editor.  WYSIWYG stands for What You See Is What You Get and it means that the program does the html coding for you.  Some editors that you might want to look into would be ranked from least expensive to most Coffee Cup HTML Editor, Microsoft FrontPage, Macromedia Dreamweaver.<br />
Before you start with getting your hands dirty it is really important to lie a good foundation for your website.  In order to have a high quality website it is important to have a good foundation and site plan before you start.  In a Church, School, or Club it is important to have a group of people working on the website planning.  The actual work might be carried out by one person but it is important to have a group plan the site plan in order to get global perspective of the organization.  During this stage it is important to gather ideas, thought, and and opinions and get them down on paper.  As the group refines their plans it is important to come up with a site map.  A site map is a graphical representation of every page that will be on the website and how they will connect to each other.  It is also important to get some basic ideas on the layout of the site.<br />
Next you can go online and check find the templates that are available.  Look around and find different ideas and templates.  If you are like many people you might find that one template does not work.  I often want a part of one and part of another template.  If this is the case and you are experienced it is not really a problem but if you are new to website design then you might want to pay someone to customize the site for you.  You can see some resources on our site dealing with template customization and templates.<br />
It is important now if possible to assign sections of the website to different individuals.  They dont even need any experience with website design.  If they can type you will be able to use them.  Assign sections to each member of the team to complete.  That team member will then work on their own computer in Microsoft word or a simple text editor to create the text and collect any graphics, pictures, or sounds that they would like to add to the site.<br />
Below is a list of some of the content areas that you might want to include on a church website</p>
<p>	Events<br />
	Services<br />
	Calendar<br />
	About the Priest or Pastor<br />
	Churchs Mission Statement<br />
	gallery of recent church activity<br />
	picture tour of the church<br />
	Sunday school or singles groups etc.</p>
<p>Each member can then turn in their section of the website on a disk to you and you will compile all of them onto the actual website.  You can often do this by a simple cut and past command in most WYSIWYG editors.  It is important at this stage to name all of the files in a consistent way and stick to the site map.  If you make changes to the site as you are building make sure you reflect these changes on your site map.  It can become very easy to build a huge website with literally 1,000s of of files including images, html documents and much more.  If you are not consistent with your file naming and site map then you will not be able to update or make changes tot he website because you will be lost.<br />
Once your website if complete you will need to find a host and upload it to the host.  If you have trouble at this stage typically the host will help you with it.  After your site is up then you will breathe a big sigh of relief and feel like you dont want to see the site ever again.  However the work has only really begun because website are constantly evolving an have to reflect what is happening in the world and your organization.  So your work has only begun.  You will now need to work to publicize your site sot hat people can find it and you will need to continually update the site and keep the content fresh and up to date.</p>
<p>About The Author</p>
<p>This article was written by: Chris Ryerson who is the owner and designer of over 10 sites that are currently on the web.  If you are interested in reading this article and other articles like it you can go to http://www.crowntemplates.com/articles.  You may also want to check out the wide variety of Templates and Free Webmaster tools at Crown Templates.<br />
marketing@crowntemplates.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/27/building_a_church_website_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>8 Steps to Design a Surfer Friendly Website That Search Engines Love! &#8211; Web</title>
		<link>http://www.documax.info/2010/02/26/8_steps_to_design_a_surfer_friendly_website_that_search_engines_love_-_web/</link>
		<comments>http://www.documax.info/2010/02/26/8_steps_to_design_a_surfer_friendly_website_that_search_engines_love_-_web/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 03:25:06 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[8]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[Engines]]></category>
		<category><![CDATA[friendly]]></category>
		<category><![CDATA[Love]]></category>
		<category><![CDATA[Search]]></category>
		<category><![CDATA[Steps]]></category>
		<category><![CDATA[Surfer]]></category>
		<category><![CDATA[that]]></category>
		<category><![CDATA[To]]></category>
		<category><![CDATA[Website]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/09/27/8_steps_to_design_a_surfer_friendly_website_that_search_engines_love_-_web/</guid>
		<description><![CDATA[8 Steps to Design a Surfer Friendly Website That Search Engines Love! plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>8 Steps to Design a Surfer Friendly Website That Search Engines Love!<br />
 Venkata Ramana</p>
<p>1 Crystal Clear Source Code HTML/CSS<br />
Many web-designers give far too much importance to the look and the graphics of the website while ignoring the clarity of the source code. Clean and well-written source code is the first step to website design success. If a spider cannot find your keywords, you might just as well forget about search engine optimization.<br />
2 Keywords in Title Tags.<br />
Keywords in the title tags are one of the most important factors for optimization. Search engines display your title tags in the search results. This tells surfers what your page is about.<br />
3 Easy Navigation Links.<br />
While preparing the layout of your website, remember the navigation links. They must be clearly visible. Hidden links must be removed. Navigation links embedded with key words are an asset in search engine ranking. But beware -- stuffing your navigation links with too many keywords may land you in trouble!<br />
4 Keyword Rich<br />
Pages BUT Understandable Content. Yes - search engines love keyword rich content. This does not mean you have to stuff your articles with meaningless sentences. A keyword rich article can contain a keyword density of five to seven percent. Your articles must also be well edited to make them both search engine and user friendly. Invisible keywords and keyword-spamming are a no-no.<br />
5 Using Heading Tags  , etc. For Ease of Reading and Search Engine Friendliness.<br />
Using  and  heading tags will help the user read your articles more easily.  is used for the headline;  and  are used for section heads and subheads. The lower the number, the larger the font size assuming you havent modified them differently. Using ,  fonts will help the search engines easily understand the importance of the content in your pages. Keywords in header tags are also given more weight.<br />
6 Fast Loading Images That Trigger Emotions<br />
Fast loading images, are very important in designing your website. Using Flash and heavy images will increase the loading time of your website. The faster your site loads, the easier it becomes for your visitor to understand your content.<br />
7 Use Alt-Tags for Text ONLY Browsers.<br />
Using alt tags for all your images will help your surfers who use text only browsers. Here is an example of alt tag: Many search engies use alt tags to determine the keyword relevancy.<br />
8 Site Maps<br />
A site map lists all the pages you feel are important for the search engines to index. SiteMaps are very important if you want search engine spiders to index each and every page of your site. A site map also provides a guide to your entire website content and helps your visitor navigate your site easily.</p>
<p>About The Author</p>
<p>Venkata Ramana has been helping webmasters to get highly targeted traffic to their websites. Join his 5 day "Targeted Traffic Secrets" course and discover 5 No-FAIL Targeted Traffic Tactics.</p>
<p>http://www.targetedTrafficForEver.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/26/8_steps_to_design_a_surfer_friendly_website_that_search_engines_love_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Growing Your Business In CyberSpace &#8211; Web</title>
		<link>http://www.documax.info/2010/02/26/growing_your_business_in_cyberspace_-_web/</link>
		<comments>http://www.documax.info/2010/02/26/growing_your_business_in_cyberspace_-_web/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 03:25:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Business]]></category>
		<category><![CDATA[Cyberspace]]></category>
		<category><![CDATA[Growing]]></category>
		<category><![CDATA[in]]></category>
		<category><![CDATA[Your]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/10/05/growing_your_business_in_cyberspace_-_web/</guid>
		<description><![CDATA[Growing Your Business In CyberSpace plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>Growing Your Business In CyberSpace<br />
 Mark Sincevich</p>
<p>A synopsis of Philippa Gamses Presentation to the National Speakers Association, Washington DC chapter on Saturday, January 10, 2004<br />
Someone had asked Philippa why Websites are such a pain in a pre-seminar question.  Her opening reply was simple, yet powerful, "when you stop improving your site, you stop growing."  She believes that Websites are a work in progress much like a business plan or ones own self-improvement.  In fact, the first question you should ask yourself about your own Website is, "What does it really do for people"<br />
The second question is "Who is your audience"  You see, websites are really a lot like a business plan!  If you are trying to attract prospective clients, then each individual page on your site should offer something of value to your audience.  The number one way that Philippa adds value to her audience is through her articles.  The best way to keep getting top listings with the most popular search engines such as Google, Yahoo! or MSN, is to constantly change or add content.  Her articles add value to her audience and are her number one search engine strategy.  Maybe this is why she doesnt cold-call.  Her customers tell her that they have seen her name in multiple locations before they call her directly.<br />
She said that we should think about the emotional connection that our website makes.  How does your website represent you when you are not there  Unfortunately most websites are not a true reflection of what we do and who we are.  The reality is that our websites need to become an expertise center.  We need to show a clear benefit such as how our programs will increase the creativity and balance of a prospective customer.  Every page should have a strategy, a way to increase our database and provide a call to action.<br />
Philippa also believes that each web site should have a dynamite testimonial across the front of the homepage, because testimonials are the least-viewed section on every website!  She recommends that we pull out our testimonials and sprinkle them throughout our site.  And when we think of testimonials, we should be thinking about the substantive ways that we have helped our customers.  If we attempt to be clear and specific about our program benefits, why not be clear and specific about their outcomes from real customers.  She recommends that we have specific testimonials for specific programs.  Talk about maximizing our congruency!<br />
In order to get started, Philippa wants to know what we have done today to improve our website.  Two days after her seminar, I added a question and answer section and submitted my site to a dozen search engines.  My next step is to write another article.  What are you going to do today to improve your web site, your business and even yourself  She encourages you to contact her about the changes you have made.<br />
For more information on how to improve your website further, Philippa recommends that you download her tip sheet, "Twenty-Three Proven Tips and Ideas for On-Line Marketing" at http://www.cyberspeaker.com/tipsheet.html.  Philippa can be contacted directly at her office in Santa Cruz, California at 831-465-0317 or pgamse@cyberspeaker.com.  If she doesnt get back to you immediately, it is due to her ongoing quest to find the best deli sandwich outside of New York City.<br />
c 2004, Mark Sincevich.  All rights in all media reserved.</p>
<p>About The Author</p>
<p>Mark Sincevich is a professional speaker, photographer and author of two books and numerous articles. He works with organizations to increase their creativity, balance, leadership and personal development. He can be reached at 301-654-3010, mark@staashpress.com, or http://www.staashpress.com.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/26/growing_your_business_in_cyberspace_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Developing a Login System with PHP and MySQL &#8211; Web</title>
		<link>http://www.documax.info/2010/02/26/developing_a_login_system_with_php_and_mysql_-_web/</link>
		<comments>http://www.documax.info/2010/02/26/developing_a_login_system_with_php_and_mysql_-_web/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 03:25:03 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[And]]></category>
		<category><![CDATA[Developing]]></category>
		<category><![CDATA[Login]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Php]]></category>
		<category><![CDATA[System]]></category>
		<category><![CDATA[With]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/10/05/developing_a_login_system_with_php_and_mysql_-_web/</guid>
		<description><![CDATA[Developing a Login System with PHP and MySQL plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>Developing a Login System with PHP and MySQL<br />
 John L</p>
<p>This article is written by daBoss. daBoss is the Webmaster of Designer Banners. daBoss can be contacted at sales at designerbanners dot com.<br />
Developing a Login System with PHP and MySQL<br />
Most interactive websites nowadays would require a user to log in into the website</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/26/developing_a_login_system_with_php_and_mysql_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Marketing Your Web Site &#8211; Web</title>
		<link>http://www.documax.info/2010/02/25/marketing_your_web_site_-_web/</link>
		<comments>http://www.documax.info/2010/02/25/marketing_your_web_site_-_web/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 10:25:04 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[Marketing]]></category>
		<category><![CDATA[Site]]></category>
		<category><![CDATA[Your]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/09/23/marketing_your_web_site_-_web/</guid>
		<description><![CDATA[Marketing Your Web Site plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>Marketing Your Web Site<br />
 Lynn Holter</p>
<p>Congratulations!  Your Web Site is finished!  Now what  Your first instinct is to submit to every search engine possible and leave it up to them to bring traffic to your site.  Despite what you may have been told, it doesn</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/25/marketing_your_web_site_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP and Cookies; a Good Mix! &#8211; Web</title>
		<link>http://www.documax.info/2010/02/25/php_and_cookies_a_good_mix_-_web/</link>
		<comments>http://www.documax.info/2010/02/25/php_and_cookies_a_good_mix_-_web/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 10:25:02 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[And]]></category>
		<category><![CDATA[Cookies:]]></category>
		<category><![CDATA[Good]]></category>
		<category><![CDATA[Mix]]></category>
		<category><![CDATA[Php]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/09/13/php_and_cookies_a_good_mix_-_web/</guid>
		<description><![CDATA[PHP and Cookies; a Good Mix! plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>PHP and Cookies; a Good Mix!<br />
 Dennis Pallett</p>
<p>Introduction<br />
Cookies have long been used in PHP scripts, and are a very useful function. But what exactly are cookies Maybe you have used then, but you still dont know exactly what they are. Or you are completely new to cookies It doesnt matter, because in this tutorial I will show you exactly what cookies are, and what they are used for.<br />
Cookies in a nutshell<br />
Cookies are small pieces of information that is stored on the computer of your visitors. Each browser handles it differently, but most simply store the information in a small text file. Internet Explorer has a special folder, which can be found in your C:Windows or C:WindowsSystem32 folder. You can delete all your cookies, by going to the Options and Clearing Cookies or deleting them by hand. I dont recommend this though.<br />
Almost every website uses cookies. If you go to Amazon.com, you will get several cookies. The same goes for CNN.com. Even Google uses cookies! They are extremely useful for temporarily storing information. For example, if you have a login system for your visitors, you could save their userid and password very heavily encrypted! so they are automatically logged in the next time they visit your website.<br />
Or you could remember their last visit, and highlight everything that is new. And thats just the beginning.<br />
Using Cookies<br />
Using cookies in PHP is extremely easy. In fact, there is nothing to it, because of PHPs inbuilt setcookie function http://php.net/setcookie. Have a look at the documentation, and then try the following example:</p>
<p>&lt;php</p>
<p>// Set a cookie<br />
// Cookie name: name<br />
// Cookie value: Dennis Pallett<br />
// Cookie expire: in 24 hours</p>
<p>setcookie name, Dennis Pallett, time + 60*60*24;<br />
&gt;</p>
<p>If you run the code above, then a cookie will be set. Thats all. The cookie name and value are pretty obvious. The cookie expire is when the cookie expires, or goes away. Simply use the time function http://php.net/time and add the number of seconds you want to have the cookie available to it. In the example I added 60*60*24=86400 seconds, or 24 hours.<br />
If you have looked at the documentation, you probably noticed there are additional arguments. As the documentation says, the path is to limit a cookie to a specific path on your web server. This is often used when you run multiple instances of the same script in separate directories. You can safely omit this argument when it doesnt matter if the cookie is available site-wide.<br />
There is also the domain argument. This can be used to limit the cookie to a specific sub-domain, e.g. test.example.com. You can also safely ignore this argument, or set it to .example.com note the beginning period, this is essential!.<br />
Finally, there is also the secure argument. This argument is only used for cookies that are sent over a secure HTTPS connection SSL. Just ignore this argument, unless youre working with a secure connection.<br />
One thing that should be mentioned is that cookies must be set, before you display any HTML/text. Its probably best if you turn on output buffering by putting ob_start http://php.net/ob_start at the top of your page.<br />
Now that you have set a cookie, you probably want to retrieve the value as well. After all, that is the whole point of using cookies. Thankfully, as PHP is ever so easy, you can retrieve the same way as you retrieve a GET value. See the following example to retrieve the value of the previous example:</p>
<p>&lt;php<br />
echo Your name is  . $_COOKIE[name];<br />
&gt;</p>
<p>This should print &quot;Your name is Dennis Pallett&quot;. Theres nothing more to it. Its just that easy!<br />
Finally, one thing you probably want to do as well is remove cookies. This is as easy as setting them. Simply change the value of the cookie to FALSE, and change the expire date to -3000 seconds. See the following example:</p>
<p>&lt;php<br />
setcookie name, FALSE, time-1000;<br />
&gt;</p>
<p>Checking if cookies are enabled<br />
Before you start using cookies, you must make sure your visitor has cookies enabled. This can be done with a simply PHP checking script. Unfortunately, the PHP page needs to reload to check for cookies. But this can be done very transparently, and your visitor should hardly notice anything.<br />
The following example will first set a test cookie, then reload the page, and finally check whether cookies are enabled.</p>
<p>&lt;php<br />
error_reporting E_ALL ^ E_WARNING ^ E_NOTICE;</p>
<p>// Check if cookie has been set or not<br />
if $_GET[set] != yes {<br />
	// Set cookie<br />
	setcookie test, test, time + 60;</p>
<p>	// Reload page<br />
	header &quot;Location: checkcookies.phpset=yes&quot;;<br />
} else {<br />
	// Check if cookie exists<br />
	if !empty$_COOKIE[test] {<br />
		echo &quot;Cookies are enabled on your browser&quot;;<br />
	} else {<br />
		echo &quot;Cookies are &lt;b&gt;NOT&lt;/b&gt; enabled on your browser&quot;;<br />
	}<br />
}<br />
&gt;</p>
<p>Run the code above, and see what the output is. Check if cookies are enabled in your browser. If theyre not enabled, then you can enable them by going to your browsers options. Unfortunately, this is different from each browser, so I cant give you exact instructions. But Google can.<br />
Storing Arrays<br />
One feature of cookies that is often missed in articles is the ability to story arrays. Cookies can be used to store multi-dimensional arrays, which can be extremely useful to store data.<br />
Consider the following code;</p>
<p>&lt;php<br />
setcookie &quot;name[first]&quot;, &quot;Dennis&quot;, time + 60*60*24;<br />
setcookie &quot;name[last]&quot;, &quot;Pallett&quot;, time + 60*60*24;<br />
&gt;</p>
<p>You can then display these two cookies using the following code:</p>
<p>&lt;php<br />
echo &quot;First Name: &quot; . $_COOKIE[name][first];<br />
echo &quot;&lt;br /&gt;Last Name: &quot; . $_COOKIE[name][last];<br />
&gt;</p>
<p>The cookie name is an array, and has multiple values. You can even go deeper and have multi-dimensional arrays, e.g. $_COOKIE[name][test][something][value]. You could store whole arrays of data in cookies. But beware that you dont store too much data, there are certain size limits to cookies.<br />
In Conclusion...<br />
Cookies are really versatile, and can be used for a lot of different purposes. Many websites use cookies, and cookies can really make your website more personalized. Using cookies in PHP isnt hard at all, and you should be able to use them without any difficulty.<br />
Before actively using cookies in your website, you must check whether the visitor has enabled them in their browser. If they dont have cookies enabled, you must either redirect to a non-cookies version of your website, or you can make sure your website also works without cookies.<br />
You can download a sample script at http://www.phpit.net/demo/php%20and%20cookies/logger.zip, where cookies are used in a somewhat practical way. In this example, there is a logging module, called log.php and a display module, called history.php. Basically, you include the log.php in other PHP pages, and then you can view history.php to lookup all the pages you have viewed and how often. The example uses arrays, and stores them in cookies.<br />
The examples in this article can be downloaded at http://www.phpit.net/demo/php%20and%20cookies/examples.zip.<br />
If you have a really unique practical way of using cookies, please let me know at dennis [AT] nocertainty [DOT] com. Id really like to hear about interesting ways of using cookies.</p>
<p>About The Author</p>
<p>Dennis Pallett is a young tech writer, with much experience in ASP, PHP and other web technologies. He enjoys writing, and has written several articles and tutorials. To find more of his work, look at his websites at http://www.phpit.net, http://www.aspit.net and http://www.ezfaqs.com</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/25/php_and_cookies_a_good_mix_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Site Monitoring Is A Global Necessity &#8211; Web</title>
		<link>http://www.documax.info/2010/02/25/web_site_monitoring_is_a_global_necessity_-_web/</link>
		<comments>http://www.documax.info/2010/02/25/web_site_monitoring_is_a_global_necessity_-_web/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 07:25:01 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Web]]></category>
		<category><![CDATA[a]]></category>
		<category><![CDATA[global]]></category>
		<category><![CDATA[Is]]></category>
		<category><![CDATA[Monitoring]]></category>
		<category><![CDATA[Necessity]]></category>
		<category><![CDATA[Site]]></category>

		<guid isPermaLink="false">http://www.documax.info/2009/09/20/web_site_monitoring_is_a_global_necessity_-_web/</guid>
		<description><![CDATA[Web Site Monitoring Is A Global Necessity plus articles and information on web]]></description>
			<content:encoded><![CDATA[<p>Web Site Monitoring Is A Global Necessity<br />
 David Leonhardt</p>
<p>Bill Huang sits down at his computer. As he connects to the Internet, he glances out at the sun poking its nose above the Hong Kong skyline. It will be another busy day, and he has to order those slippers for his wife before rushing off to a meeting.<br />
He types in his search terms and Google faithfully reports: "Results 1 - 100 of about 1,760,000. Search took 0.34 seconds."<br />
Bill clicks on a the Big Soft Slipper web site and waits for the page to load. "Site unavailable," Bill reads. He hits the "back" button. Then he clicks on another of the 1,760,000 pages Google offered him.<br />
High above Cleveland, USA, the executives at Big Soft Slipper are clinking their glasses and patting themselves on the back. "We sure did it," the CEO crows. "Look at that beautiful home page. Look at the easy navigation. Look at how fast it loads."<br />
Somebody please tell them about Bill Huang.<br />
"Very few people realize how the web site that loads so zippy in their office, flows like molasses on their customers computers</p>
]]></content:encoded>
			<wfw:commentRss>http://www.documax.info/2010/02/25/web_site_monitoring_is_a_global_necessity_-_web/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- Quick Cache: failed to write cache. The cache/ directory is either non-existent ( and could not be created ) or it is not writable. -->
