RSS
 

Posts Tagged ‘tutorial’

SEO: Quick tutorial

31 Jan

Here is a letter I wrote to my brother telling him how to do search engine optimization for his website for fast result. I thought I must share it to world so people canĀ  learn and suggest some ammendment(s).

_________________________________________________

Hello brother,

Here is the tutorial on Site Engine Optimization as you requested.

Before website is complete

0. Domain name
Your domain name must contain the most relevant keyword related to your site.
1. Keywords
Identify the keywords related to your site which users will search for.
Let the keywords be A, B, C, X, Y ,Z (in decreasing order of priority)
2. Meta Tag
Add these keywords to meta tag of your site. (Remove unwanted keywords)

Read the rest of this entry »

 
2 Comments

Posted in SEO

 

Javascript Tutorial: Gray-out the screen, Focusing on a box by darkening background content

30 Jan

In this tutorial you will learn about using Javascript DOM to Disable the page content by covering it with a layer (of div tag) or simply Graying out the screen.

A little Blah Blah

You might have seen on many websites, when you click a link, the whole page darkens and you are focused on a specific box. Here is the tutorial on how to create it.
Example www.pixel2life.com (click on login button)

Lets begin

Here is a code of the page which we are going to modify.
Old HTML code comes here

<html>
<head><title>Title</title></head>
<body>
<div id="outsider">
<div id="IEcenterFix">Some text here</div>
<div id="initiator">Click me</div>
</div>
</body>
</html>

Read the rest of this entry »

 

PHP Tutorial (File Handling): Scratch Pad

09 Jan


Prerequisite

  1. Knowledge of basic PHP syntax.

In this tutorial you will learn about

  1. File Handling

Functions

We will be using 3 predefined functions for file handling

  1. fopen: To open a file
  2. file_get_content: To read a file
  3. fclose: To close a file

Little theory before we begin

Opening a file

Predefined function fopen() is used to open a file. It returns a variable which can be used for accessing the file. Returned variable is called as file handler.
Syntax:

$var = fopen("path to file", "mode");
 

mode: It controls how you want to access a file.
Note: It opens the file only if the logged-in user has permission to open it. If unable to open the file it returns false.
Read the rest of this entry »