[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: status() vs constants


That seems to work for me under MP2

My first guess is that it has to do with status renamings...

Instead of setting something to 200 / 500 , why not just set it to the name of the status code, then use a Hash to pull out the appropriate code for apache1/apache2?

personally i like 'human text' like that, then looking stuff up in a hash of values when you need the integer code. it makes debugging way less painful.


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.