Recommend this page to Google

7 Secrets to a Great Life

A great life doesn't happen by accident. A great life is the result of allocating your time, energy, thoughts, and hard work towards what you want your life to be. Stop setting yourself up for stress and failure, and start setting up your life to support success and ease. A great life is the result of using the 24/7 you get in a creative and thoughtful way, instead of just what comes next. Customize these "secrets" to fit your own needs and style, and start creating your own great life today!

Agenda for Success - 2004

The year 2004 is knocking at our door. Did you finalize your agenda for success for the year 2004? No, not yet! Wake up please! Take a paper and pencil and write down your success plan for 2004. Saying "Happy New Year" is not enough. Plan to make 2004 the happiest and the best year of your life. Good luck!

I give below my own personal agenda for your comments, suggestions, review or advice, if any:

- I will keep myself healthy and fit by involving more in indoor and outdoor physical activities

Using ftp in Linux

FTP stands for File Transfer Protocol. It is a very simple and useful protocol which allows its users to transfer files between computers.

ftp (in lower case) is a program that allows you to transfer your files between computers.

FTP is used by almost all webmasters. They mostly use it to upload their file to the server and to back up the sites locally.

In this article, we would see how it is used in Linux/Unix systems. ftp program comes along with most Linux distributions. So you don't have to worry about downloading, installing, etc.

Running ftp

MySQL column enumeration - Enum()

Problem

You are building a database and you have a field that can accept only certain responses. For example, there is a Gender column which accepts only M or F as values.

Solution

Gender ENUM('M','F') not null

This means, the columns can take only one of the values explicitly listed in the column specification. Either F or M.

ENUM allows you to specify a restricted set of values the column can hold.

Multiple character values are also allowed.

Gender ENUM('Male','Female') not null

Complete Example
Create a table:

CREATE TABLE Person
(

cookies and headers

One of the most frustrating problems I ever had with PHP was with with headers. I was writng some authentication code which would verify login password combination. If the combination is erroneous, I include a standard relogin page with a message. Otherwise I wanted to set a cookie and included another page.

This is where I was getting the following warning:

Warning: Cannot add header information - headers already sent

You are supposed to get this error if you try to call header() or setcookie() after a header has been called. A header is called with:

*

header()

PHP - String Encryption

If you want to know how to encrypt a string in PHP, then you have come to the right place.

The easiest way to encrypt a string is to use the crypt() function. There are only 2 things you need to know:

*

How to encrypt a string
*

How to match an encrypted string

Encrypting a String

To encrypt a string, you have to do the following.

$password = "password";
$encryptedPassword = crypt($password);

If you want to see the encrypted string, print $encryptedPassword.

Matching an Encrypted String

SSH - installing and using

SSH stands for Secure Shell. To access a remote Linux/Unix system, you can use either telnet or SSH. The problem with telnet is that your telnet session is visible in plain text on your local network and the local network of the machine you are connected to. SSH works like a telnet but it encrypts the data being sent. SSH programs are available for every major operating systems.
Downloading, installing, using a SSH client on Windows

Syndicate content