16 December 2007

Web Hosting

Web Hosting

* The Web is a network of computers all over the world.
* All the computers in the Web can communicate with each other.
* All the computers use a communication standard called HTTP.
* Web information is stored in documents called web pages.
* Web pages are files stored on computers called web servers.
* Computers reading the web pages are called web clients.
* Web clients view the pages with a program called a web browser.
* Popular browsers are Internet Explorer and Mozilla Firefox.
* A browser fetches a page from a web server by a request.
* A request is a standard HTTP request containing a page address.
* An address may look like this: http://www.someone.com/page.htm.
* All web pages contain instructions for display
* The browser displays the page by reading these instructions.
* The most common display instructions are called HTML tags.
* HTML tags look like this

This is a Paragraph

.
* The collection of all your web pages is called your web site.
* To let others view your work, you must publish your web site.
* To publish your work, you must copy your site to a web server.
* Your own PC can act as a web server if it is connected to a network.
* Most common is to use an Internet Service Provider (ISP).
* ISP stands for Internet Service Provider.
* An ISP provides Internet services.
* A common Internet service is web hosting.
* Web hosting means storing your web site on a public server.
* Web hosting normally includes email services.
* Web hosting often includes domain name registration.

If you want other people to view your web site, you must copy your site to a public server. Even
if you can use your own PC as a web server, it is more common to let an Internet Service
Provider (ISP) host your site.

Included in a Web hosting solution you can expect to find domain name registration and
standard email services.

Internet Service Providers are specialists on web hosting. Expect their servers to have more
than 99% up time, the latest software patches, and the best virus protection.

Things to Consider

24-hour support
Daily Backup
Traffic Volume
Bandwidth or Content Restrictions
Email Capabilities
Front Page Extensions
Database Access

What is a Domain Name?

A domain name is a unique name for a web site, like microsoft.com and w3schools.com.
Domain names must be registered. When domain names are registered they are added to a
large domain name register, and information about your site
- including your internet IP address
- is stored on a DNS server.

DNS stands for Domain Name System. A DNS server is responsible for informing all other
computers on the Internet about your domain name and your site address.

Common Hosting Technologies
Windows Hosting
Unix Hosting
Linux Hosting
CGI
ASP - Active Server Pages
Chili!Soft ASP
JSP
FrontPage
PHP
Cold Fusion
Secure Server

Database-driven web sites
Web Databases
Using the SQL Language
SQL Server
Oracle
Access
MySQL

Hosting can be FREE, SHARED or DEDICATED

Your Checklist
Before you choose your web host, make sure that:
* The hosting type suits your current needs
* The hosting type is cost effective
* Upgrading to a better server is a possible solution
* If needed, upgrading to a dedicated server is possible

Web Hosting E-Commerce

Your Checklist

* How does it handle customers?
* How does it handle product catalogs?
* How does it handle orders?
* How does it handle inventory?
* How does it handle back orders?
* How does it handle shipment?
* How does it handle accounts?
* How does it handle billing?
* How does it handle payment?
* How does it handle foreign currency?
* How does it handle credit cards?
* How does it handle taxes?
* How does it handle security?
* How does it handle integrity (encryption)?

Also check if the most time-consuming tasks are automated. Look for automated billing, invoice handling, accounting, and report generation.

Before you sign up a contract with any hosting provider, surf some other e-commerce sites on their servers. Find out how it works. Actually try some shopping and see if you get a good feeling. Also compare the other sites against yours, to see if it looks like you have the same needs. Contacting some of the other customers is also a valuable option.

15 December 2007

Eye Care Tips

Helpful Tips on Eye Care

With so many of us spending lots of time in front of the computer every day it comes to
no surprise that research is showing a rise in visual problems. What can one do?
First, it's important to find out how you can protect your eyes through eye health
exams and by making a few minor changes in your computer viewing habits.



Here are some helpful Eye Care Tips -

Positioning is everything

Correct positioning of your computer, keyboard and typing copy is essential. Your screen should be positioned about an arm's length from your eyes and 20 degrees below eye level. Consider foot and wrist rests for added comfort.

Lighting can make all the difference

Room lighting should be diffuse, not direct, to reduce glare and reflections from your screen. Look into an internal or external glare screen and be sure to set your colour, contrast and brightness levels to suit you.

A little extra help for your glasses

Anti-reflective coatings on the lenses of your glasses can be applied by your optometrist to reduce discomfort and to ease reduced vision from bright and/or flickering light sources such as VDTs and fluorescent lights. And don't forget, your doctor of optometry can talk to you about eyeglasses designed specifically for people who use computers a lot.



Take time out, our 20-20-20 rule


Step I :-
After every 20 minutes of looking into the computer screen, turn your
head and try to look at any object placed at least 20 feet away. This
changes the focal length of your eyes, a must-do for the tired eyes.


Step II :-
Try and blink your eyes for 20 times in succession, to moisten them.


Step III :-
Time permitting of course, one should walk 20 paces after every 20 minutes
of sitting in one particular posture. Helps blood circulation for the entire body.

It's all in the blinking

Did you know that on average we blink 12 times per minute? But wait, did you know that when we're on the computer we only blink 5 times per minute? That can add up to dry eyes. Relieve the discomfort by using artificial tear drops or gels and remember to blink!


Palming

Sit straight at your workstation and rub your palms against each other till you feel them warm. The warmth of your palms helps soothe and relax tired eyes. Then, lightly cup your eyes with your palms and relax for 60 seconds. Count the seconds in your mind. Repeat this exercise two to three times whenever your eyes feel tired, or as often as you want. While palming, you can either rest your elbows on your desk or keep away from the desk and cup your eyes. Both ways are fine.

Splash water on your face

During breaks, splash water on your face while closing your eyes. This has an overall relaxing effect and helps you feel refreshed.

Use tea bags

Keep two used tea bags in the refrigerator before you leave for work. Once you are home, place the tea bags on your eyes for a few minutes as you relax. This not only soothes tired eyes, but also reduces puffiness.



Eat healthy

Incorporate Vitamins A, C, and E on a daily basis; eat citrus fruits, green leafy veggies, tomatoes, spinach, poultry and dairy products. Pack a box of chopped carrots, cucumber and fresh fruits and munch in-between meals at the office.

14 December 2007

PHP Session Timeout

ini_set('session.gc_maxlifetime', 20);
ini_set('session.gc_divisor', 1);

session_start();

if(isset($value))
{
$value++;
}
else
{
session_register('value');
$value = 1;
}

Print "You have been here $value times.
";

print 'Refresh';

?>

11 December 2007

Drag and Drop Example

http://www.webreference.com/programming/javascript/mk/column2/3.html

http://www.dhtmlgoodies.com/scripts/dragable-boxes/dragable-boxes.html

http://www.ajaxpath.com/drag-and-drop/