Wednesday, December 5, 2007

Symbol Scanner Headache

What a pain! I accidentally kicked out the plug on the symbol scanner cradle and it's battery died, taking my wireless network settings with it. After a couple of hours of frustration with they system telling me that it could not operate within my country, I finally found the following in the scanner documentation:
Enable 802.11d - With this check box selected, the WLAN adapter attempts to retrieve the country from APs. Profiles which use Infrastructure mode are only able to connect if the country set is the same as the AP country settings or if the profile country setting is set to Allow Any Country.

I unchecked the "enable 802.11d" option for the US, and the scanner connects to the network. The ending part of the last sentence appears to be inaccurate, as I had my profile set to "Allow Any Country", and I still got a region/country error.

Enabling mysql on local php website

I setup a development instance on my PC of our corporate website today. The website was written in php, with a mysql back-end. I ran into a problem with php talking to mysql. Mysql is not enabled by php out of the box, so here are the steps that I had to follow to enable it:

  1. Verified path to php installation dir ("C:\Program Files\PHP") was in the PATH string
  2. Verified extension dir was set in the "Paths and Directories" Section of php.ini
    1. extension_dir = "C:\Program Files\PHP\ext"
  3. Downloaded supporting mysql dlls
    1. Put libmySQL.dll in the php installation dir
    2. put php_mysql.dll in extension_dir
    3. put php_mysqli.dll in extension_dir
  4. Enabled extension DLL's in the Dynamic Extensions section of php.ini
    1. extension=php_mysql.dll
    1. extension=php_mysqli.dll