Change timezone of PHP
Posted on February 9, 2008
Filed Under PHP | Leave a Comment
If you wanna change the timezone of a PHP script, set the timezone environmental variable in your PHP code as simple as shown bellow.
1 2 3 | <? putenv("TZ=Asia/Colombo"); ?> |
U.S. Robotics Wireless USB Adapter in Ubuntu 7.10
Posted on February 4, 2008
Filed Under Linux | Leave a Comment
I had a hard time configuring my U.S. Robotics Wireless USB Adapter in Ubuntu 7.10, at last found out non of the native drives work for it and installed the windows driver with ndiswrapper and disabled all the native usb drivers by adding them to the /etc/modprobe.d/blacklist and boom it start working.
1 2 3 4 5 6 7 8 9 10 11 | blacklist islsm_pci blacklist islsm blacklist islsm_usb blacklist prism2_usb blacklist rtl8187 blacklist r8187b blacklist r8187 blacklist prism54usb blacklist prism54pci blacklist p54usb blacklist p54pci |
Note:If you don’t disable the these modules by adding them to the the blacklist the ndiswrapper wouldn’t work properly.