February 2008

It was a busy morning, about 8:30 am, when an elderly gentleman in his 80’s, arrived to have stitches removed from his thumb. He said he was in a hurry as he had an appointment at 9:00 am.

The doctor took his vital signs and had him take a seat, knowing it would be over an hour before someone would to able to see him.
The doctor saw him looking at his watch and decided, since he was not busy with another patient, he would evaluate his wound.

On exam, it was well healed, so the doctor talked to one of the doctors, got the needed supplies to remove his sutures and redress his wound.

While taking care of his wound, doctor asked him if he had another doctor’s appointment this morning, as he was in such a hurry. The gentleman told no, that he needed to go to the nursing home to eat breakfast with his wife.

Doctor inquired as to her health. He told that she had been there for a while and that she was a victim of Alzheimer’s disease. As they talked, doctor asked if she would be upset if he was a bit late.

He replied that she no longer knew who he was, that she had not recognized him in five years now.

Doctor was surprised, and asked him, “And you still go every morning, even though she doesn’t know who you are?”

He smiled as he patted his hand and said,

“She doesn’t know me, but
“I still know who she is.”

The doctor had to hold back tears as he left, he had goose bumps on his arm, and thought,

“That is the kind of love I want in my life.”

True love is neither physical, nor romantic.

True love is an acceptance of all that is, has been, will be, and will not be.

Once there was a little boy who had a bad temper. His father gave him a bag of nails and told him that every time he lost his temper, he must hammer a nail into the back of the fence.

The first day, the boy had driven 37 nails into the fence. Over the next few weeks, as he learned to control his anger, the number of nails hammered daily gradually dwindled down. He discovered it was easier to hold his temper than to drive those nails into the fence.

Finally the day came when the boy didn’t lose his temper at all. He told his father about it and the father suggested that the boy now pull out one nail for each day that he was able to hold his temper. The days passed and the boy was finally able to tell his father that all the nails were gone.

The father took his son by the hand and led him to the fence. He said,

“You have done well, my son, but look at the holes in the fence. The fence will never be the same.When you say things in anger, they leave a scar just like this one. You can put a knife in a man and draw it out. It won’t matter how many times you say I’m sorry the wound is still there. A verbal wound is as bad as a physical one.”

A general manager wanted to test his people, who had come from all over India, about their values of life. He announced that in their seminar folder, there was a PVC pouch and in it a seed.

When they return, they must put the seed in a pot with good soil and look after it very well. He would hold a competition at the next year’s seminar and that the best plants would be awarded suitably.

Everyone did what was told to him. A year passed quickly. And next year in a big hall, a great scene! There were hundreds of pots and a great variety of plants – all except one. In this one pot was soil, but no plant! The owner of the pot was standing quietly and seemingly ashamed of himself.

The general manager called him on the stage. He asked him what happened and he told him the truth. He planted the seed, which he was given, and did what was to be done – but nothing happened.

The general manager declared him the winner!

Everyone was shocked.

He said, “Gentlemen! The seeds I gave you were boiled seeds. You planted them and nothing happened! You acted smartly and used some other seeds. This man was honest to his work and therefore, he did not cheat me or himself!”

PHP provides a very simpler way to fetch the file extension using the function pathinfo() .

The function pathinfo() returns the information about the file path. It takes two arguments .

1. The first argument is the path to be checked.

2. The second argument is optional.It is used to specify which elements are returned.It composes from PATHINFO_DIRNAME, PATHINFO_BASENAME, PATHINFO_EXTENSION and PATHINFO_FILENAME. It default returns all elements.

The following example fetches the file extension using pathinfo() :


$path_parts = pathinfo(‘index.php’);

echo “File Extension : ” . $path_parts[‘extension’];


The output of the above code will be

File Extension : php

In PHP, we can create a log file and write to it, whenever needed. The following is the php file ‘logfile.php’.

class logfile{
function write($the_string )
if( $fh = @fopen( “/logfile.txt”, “a+” ) )
fputs( $fh, $the_string, strlen($the_string) );
fclose( $fh );
return( true );
return( false );

In the above example, the class ‘logfile’ has a method ‘write’. This method will write the messages to the log file ‘logfile.txt’. Note that this file should exists before writing to it.

The below file uses ‘logfile.php’ to write the messages to the log file.

require ‘logfile.php’;
$lf = new logfile();
$lf->write(“Writing log file”);
echo “Data written to file”;
$lf->write(“Appending to log file”);