I think I finally understand Apache-Test

I told Marcus Baker a couple of weeks ago that I would like to lend a hand in figuring out the best way to get SimpleTest working with Apache-Test. I actually was able to put quite a bit of time into this today and have achieved some results finally. Now, these results are far from a solution. All I have managed to do thus far really is to understand enough about the inner workings of Apache-Test so I can actually get a "self-created" test working inside of the Apache-Test environment.

Continue reading I think I finally understand Apache-Test

What did exceptions ever do to you?

I was doing my daily browsing of the sitepoint forums and was visiting a topic we have started regarding Hibernate and OQL. One of the posts in that topic said pretty much the following:

[quote]Oh i forgot to mention that Exceptions are a prime example of something that doesnt fit the PHP way at all![/quote]

Now I don’t exactly know what the "PHP" way is. But a statement like this makes ABSOLUTELY no sense to me. I decided against posting my thoughts at sitepoint as this would undoubtedly ruin an otherwise informative thread.

Now thankfully I was able to get a better idea of where this guy was coming from since he posted a comment at the following blog post:

http://blog.thinkphp.de/archives/14-ReflectionClasshasMethod.html.

Read on….
Continue reading What did exceptions ever do to you?

Benchmarking misconceptions, microtime() vs. getrusage()

This entry was spawned by a post in sitepoint’s forums about benchmarking. It reminded me of what a jaded view many programmers have about quick and dirty benchmarking options. Most people make use of microtime()/time() functions, which at the surface makes sense. However, I never like to look at things on the surface, so I would like to dig a little deeper and show everyone a unix/linux alternative to the standard microtime() bench mark.

Read on!

Continue reading Benchmarking misconceptions, microtime() vs. getrusage()

The best solution – a programming concept

Below you will find a little ‘bit’ that I was about to put into a forum post. I then decided it was off topic from the question I was asked. There was lots of good info that I didn’t want to forget I said though, so I am going to keep it here for posterity’s sake. Enjoy!

-MikeL

To find the best way to do something there are many issues you have to deal with. I like to divide the issues into three seperate categories: delivery of functionality, efficiency of code, and ease of implementation.

Continue reading The best solution – a programming concept

Click Path Tracking/Analysis Stuffins

I think I may have finally found a solution to the click path tracking question: http://www.sebastian-bergmann.de/blog/archives/446-Second-Release-Candidate-for-phpOpenTracker-1.5.0.html

To summarize, setup was simple, integration was simple, it doesn’t have a packaged web interface to speak of. It is only marketed as a framework, so a nice interface shouldn’t even be expected really. Continue reading Click Path Tracking/Analysis Stuffins

PHP5 and PHP4 Running on SAME apache server

**Update 10/30/04 **
First off, it has been brought to my attention that this DOES NOT work for Linux servers. It has only been successfully tested on FreeBSD servers. In particular a FreeBSD 4.10_STABLE server. I am currently working on a similar solution for Apache on Linux. (Redhat9 in particular)
****

I think I have finally found a way to do what I need to do with parrallel versions. My situation is my company’s hosting farm doesn’t give us the ability to run two seperate apache servers on one box and I don’t particularly want to run a CGI version due to the loss of $_SERVER variables and other security issues. So I endeavored on a trick to get php5 to use a different mime-type. Well, it’s not a trick, but it’s also probably not obvious to most people how to accomplish this so read on.
Continue reading PHP5 and PHP4 Running on SAME apache server