Tuesday, January 9, 2007

The “killingest” assumptions businesses make revolve around how their customers buy. Suppose you and 99 other people go into an electronics store and purchase the exact same item. That’s 100 sales. But you can probably guess those 100 sales didn’t unfold in the exact same way. No properly-trained sales person would ever use the exact same language or structure the sale the exact same way for every single customer. And yet, ecommerce sites routinely assume one product page is going to meet the needs of all customers interested in that product. Talk about your huge assumptions!

Source: GrokDotCom

How flexible are your sales processes?

Popularity: 1%

{ 0 comments }

PHP Register_Globals and Register_Long_Arrays

by damonp on January 9, 2007

in PHP

After upgrading several servers to PHP5 a few older versions of popular applications started giving odd errors. Register_globals has been configured off by default for security reasons since early PHP4. Applications that rely on register_globals all had .htaccess files enabling it for the subdirectory only. The errors we were seeing were similar though, data didn’t appear to be passing through a form post.

With a little research inside the PHP5 php.ini file, I found a related parameter, register_long_arrays. This parameter turns on legacy support for the long PHP parameters $HTTP_POST_VARS, $HTTP_GET_VARS, etc. which have since been supplanted by $_POST, $_GET, etc.

Dropped the following into the .htaccess file and all is well:

php_flag register_long_arrays on

More info:
http://www.php.net/manual/en/ini.core.php#ini.register-long-arrays

Popularity: 10%

{ 0 comments }