Need to make PHP ‘stop’… PHP wait timer

AJAX is great… but sometimes it’s too quick if you’re updating… So… How can I make the page wait for a few seconds, then proceed?

Well there are 2 functions PHP has to pause execution. They are:

sleep(NUMBER_OF_SECONDS);

and:

usleep(NUMBER_OF_MS);

One thing you may want to keep in mind is that if you are using a for loop and wish to do this, then you might want to increase the timeout:

set_time_limit(NUMBER_OF_SECONDS);

The Old Golfer

A circus owner runs an ad for a lion tamer and two people show up. One is a good looking, older retired golfer in his late sixties and the other is a gorgeous blond in her mid-twenties.

The circus owner tells them, “I’m not going to sugar coat it. This is one ferocious lion. He ate my last tamer so you two had better be good or you’re history. Here’s your equipment — chair, whip and a gun. Who wants to try out first?”

The girl says, “I’ll go first.”

She walks past the chair, the whip and the gun and steps right into the lion’s cage.

The lion starts to snarl and pant and begins to charge her.

About halfway there, she throws open her coat revealing her beautiful naked body.

The lion stops dead in his tracks, sheepishly crawls up to her and starts licking her feet and ankles.

He continues to lick and kiss her entire body for several minutes and then rests his head at her feet.

The circus owner’s jaw is on the floor. He says, “I’ve never seen a display like that in my life.”

He then turns to the retired golfer and asks, “Can you top that?”

The tough old golfer replies, “No problem, just get that lion out of the way.”

Panda in bar….

A panda walks into a bar and orders some food, after he’s done eating he shoots the bartender and starts leaving.

“Hey, you can’t do that!” said someone else in the bar

“Yes I can, I’m a panda bear it’s what I do, look it up.” says the panda bear.

Later he looks up “panda bear” and sure enough it says

“Panda Bear; Eats shoots and leaves.”

Search Engine Ranking via Title Tags

”How do I get my website page to rank well in search engines for a certain search term?”. While there are many techniques and tactics that can contribute to how your website ranks, one of the most fundamental is through the use of title tags. Title tags let search engines know what the main thrust of each web page is, and which categories or search terms to file the site under. By the way a title tag is what falls between the <TITLE> and </TITLE> tags in your html code for each page.

Continue reading

Forum is here…

I have recently added a forum to my site.

If you have any specific requests for some development (PHP,.NET … anything), project management, search engine optimisation… or just want to talk about something random.

I am active on experts-exchange.com and answer many issues, but I will also do that here!

Hope you can join me!

You can register for the form (and my site) here.