I’ve had custom error pages on my site since it started, but today I added an awesome feature. It was great that the user was getting an error page with the same look and feel as my site, but I wasn’t getting any information from it.
I’ve added some PHP scripting so that whenever someone gets one of my error pages, I am sent an email with the URL they were trying to access, the referring page that has the broken link, time, date, visitor’s IP address. Now I’ll be able to track down broken URLs and resolve them.
Mr Bob’s Web Design has a great code generator and instructions for setting this up. When you do step 2, make sure to remove any blank lines at the end of functions.inc.php after pasting the code into it. If you don’t, you will get an error message on your error pages that the headers have already been sent.
I just finished installing TFS Statistics on my web site. The configuration was a breeze and the instructions were top notch for the installation.
From their website:
TFS is a Web statistics package written in PHP.
Features: Web site statistics by day, month, year, OS, browser, bots/spiders, referrers,last visitors, last bots/spiders, page hits, visitors by country, average visitors/bots and % function on all counters. In the last bots/spiders and last vistors overview you can click a link so you can see what pages are requested by the visitor, spider, or bot. Referrers are listed by domain if you click on the domain you will see the pages where your site is listed. You can also exclude ip adresses, so they will not show up in your statistics.
I did run into a conflict between their code and WordPress. I was getting “is not a valid MySQL-Link resource” error messages from some of the WP queries, but the errors went away when I turned off the TFS includes. I ended up finding a fix for the problem and documented it on their forums.
So far it looks like a great package that gives me all of the information that I want about the visitors to my site.
Today we finally played a good game in basketball league. We beat a team (by about 14) that we barely lost to in the first half of the season. We really shot well and took good shots.
My shot finally came around as I stepped in closer to the basket and made a few drives to the hole. I had at least 20 of our 54 or so points. Felt good to finally drill some shots.
On a side note: This weather is killing me. We have more snow than we probably got all of last year. The roads were super slick tonight. I slid right through a stop light and missed my turn. Good thing it was a green light and not red, because that would have been a nice crash.
I’ve always said that I would like to have a house on a golf course. Today I questioned myself…why?
The view would be awesome, but other than that, there really aren’t any great advantages I can think of. The property around a “nice” golf course is over priced because of the location. You can’t walk out and play a few holes anytime you want. You have limited use of your yard for obvious reasons. You have to put up with people walking on your property to find their golf balls. Your children will be in danger of golf balls and foul language.
Maybe it would make for a nice retirement/summer home.
Each week, The Friday 5 site has a set of questions, which I’ll be using as a post here. Just something to look forward to once a week.
At this moment, what is your favorite…
-“Hey Ya” by OutKast
-Chiken Philly sub from Charley’s Steakery
- …tv show?
-Home cooking (on a long term basis)
-Gasoline or a fresh lit match (on a short term basis)
-“Free your mind” from The Matrix
How about you?
Just a few updates…
My interview for the programming position at SVSU has been scheduled for next Wednesday afternoon. It can’t come soon enough.
I started on my income taxes today and it looks as if I’ll be getting another nice return this year. The money will be going straight towards extra payments on my student loans.
Casey, Hater, and I met for dinner tonight. We really haven’t hung out enough this school year.
Today I received an email forward from a friend with a bunch of Andy Rooney quotes. I’ve received similar messages a few times before and each time I read them I like Rooney more and more.
Here are a few of the items from the email:
I think that if you feel homosexuality is wrong, it is not a phobia, it is an opinion.
I don’t think being a minority makes you a victim of anything except numbers. The only things I can think of that are truly discriminatory are things like the United Negro College Fund, Jet Magazine, Black Entertainment Television, and Miss Black America. Try to have things like the United Caucasian College Fund, Cloud Magazine, White Entertainment Television, or Miss White America; and see what happens. Jesse Jackson will be knocking down your door.
I have the right “NOT” to be tolerant of others because they are different, weird, or tick me off. When 70% of the people who get arrested are black, in cities where 70% of the population is black, that is not racial profiling, it is the Law of Probability.
In addition to these examples, I found a website with a whole page full of Andy Rooney thoughts. It makes for interesting reading material.
Earlier tonight (around 6:30 p.m.) a janitor walked into a bathroom in Curtiss Hall, found a puddle of blood, and called 911. It turns out that there was a fetus in one of the toilets, but the mother was no where to be found. The Michigan State police have been investigating, but no further details have been released.
I’ll update this post tomorrow as the story unfolds.
Update: Check the comments for information provided by the SVSU Chief of Police.
If you could invite any 3 people (living or dead) to dinner, who would they be?
I’m going to split my choices up into two categories.
- Barry Sanders, the great running back of all-time. Anyone that can have so much talent and be so quiet about it is a special human being.
- Mike Krzyzewski, coach of the men’s basketball team at Duke. The guy flat out knows how to coach, motivate, and be a friend to his players. He will end up as the greatest coach ever at the college level.
- Lance Armstrong, cancer survivor and 5-time winner of the Tour de France. He might be one of the greatest athletes alive today, expecially after battling cancer!
- Nostradamus, perhaps the greatest prophet ever to live. Many of the things he predicted have come true in some part. I’d like to ask him how he did it.
- Bill Gates, founder of Microsoft. How could you not want to have dinner with the richest man in history?
- Thomas Edison, the inventor of the lightbulb. You may not know that he invented many other things including the motion picture camera, phonograph, an electrical voice recorder, sockets, switches, insulating tape, steel alkaline storage batteries, and many many others. During his life, he was awarded 1,368 different patents.
The Detroit Pistons have won their 13th game in a row, tying a franchise record. They beat the defending champion Spurs tonight.
Duke took over the #1 spot in the Coaches and AP polls today. Go Blue Devils!