Tuesday, November 16, 2010

Selamat Hari Raya Aidil Adha

Perjalananku pulang beraya ke Parit, Perak amat memilukan sebab terpaksa pulang seorang diri. My Wife berada dikg sebab masih dlm pantang.

Bertepatan dgn Ibadah Korban yang disambut setiap tahun yg mendidik kita erti pengorbanan dan bersedekah serta saling bantu membantu.

Pengorbanan memerlukan keikhlasan dan besar pengertiannya.

Alhamdulillah saya juga berpeluang utk menjalankan ibadah korban pada tahun ini di kampung dan juga di Kemboja.

Moga perjalananku ke kampung selamat dan penuh erti.

Sempena Hari yg penuh bermakna ini saya ingin ambil kesempatan utk mengucapkan selamat Hari Raya Aidil Adha dan selamat menjalani ibadah korban kepada semua pembaca Blog KA.
Sent from my BlackBerry® wireless device via Vodafone-Celcom Mobile.

Friday, November 05, 2010

7portal makes home-based business easier

By Azaraimy HH

HRH the Crown Prince in conversation with Nor Azian at the TechXpo at ICC. - PHOTO COURTESY OF NOR AZIAN
With the advent of social networking sites like Facebook, many people are able to run home-based businesses through the Internet. In Brunei, this is also fast catching up. Check out the likes of "de cutehaus", "Dk onlineshop", "Mystique Naomi", "kadai jami" and a lot more as they stand testimony to the e-business revolution.

Few years back, Nor Azian was struggling to keep her business afloat but then saw her business boom from a small shop selling flowers to a florist specialist and her home-based "i-can-rent-for-you" activity went into a full-blast baby cradle rental business. Together with her home-based bridal business, she has her time going for her.

Nor Azian and her husband have dropped their good paying jobs to focus on their business and customers, which now has a good base of clientele. They also run www.perkahwinannegerisembilan.com.
But she became successful not until she found 7portal.my, a Malaysian-based webhost that offers CMS (content-management software) which allows people with no IT or ICT knowledge whatsoever to administer their own dynamic and transaction-capable dotcom website without the expensive assistance of a webmaster and designing works from a web designer.

7portal.my is one of the technology companies that is showcasing their products at the first-ever Tech Exposition - the TechXpo 2010 - currently being held at the International Convention Centre (ICC), and their participation is timely as many Bruneians are now joining the web-based business bandwagon. It is also timely for those NGOs and non-profit organisations that are looking to establish dynamic professional websites but can't afford to maintain one.

7portal runs a D.I.Y (do-it-yourself) portal design and administration with a CMS that will even make facebook look a bit more technical.

In an interview with Nor Azian, who is now working as a main distributor for 7Portal due to her success and has been a consultant to many people who want to follow her footsteps, she said she had no prior knowledge on IT.

Her idea to join the 'online' bandwagon first came when she ordered her stock online from a company website based in Australia. She said she was amazed when her stock came right at her doorstep.
After that, she and her friends tried to look for an affordable web designer.

"In the past, a web designer could charge you about $100 to $200 per webpage. It is an expensive affair for a simple shop to maintain it," she said.

Logically, stocks are changing thus websites need to have constant updates, and if something goes wrong to the website, trouble shooting and necessary correction should be done. All these require good technical knowledge. This is where problems will come.

"We do not know how to admin and what HTML etc is. This is the common problem people have when they order a website from a web designer."

To cut the story short, she was amazed how 7portal has made that problem non-existent. The administration of the website through a dedicated CMS is so simple that will even make facebook look a little bit more complicated.

She can even change the layout and the look according to seasonal period, such as Hari Raya time, Christmas etc.

"You can even drag and drop photos from facebook right through the CMS admin very easily," she added.
7potal has five main features namely; 7portal (easy CMS); 7commerce (complete package for commercial website including shopping cart, payment gateway, domain, email, hosting, supportive services); 7skin (growing number of customisable template to mix and choose); 7sms (capable for sending SMS to 1,500 numbers simultaneously); and 7academy (training and consultation services).

7portal is currently doing a free demonstration for visitors at the TechXpo 2010 at the ICC in Berakas.
7portal will also be holding a website development training course at SEAMEO-VOCTECH on November 7 (Sunday) and marketing strategy through Facebook, eBook etc.

Sumber: http://www.borneobulletin.com.bn/fri/nov5h41.htm

How to fix ‘Function eregi() is deprecated’ in PHP 5.3.0?

I used to use eregi for validating email address input that matches to the regular expression.

if(!eregi("^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$"$str)) {
$msg 'email is not valid';
else {
$valid true;

That would return true if given email address is matches to username@domain.ext pattern. Unfortunately, after upgrading PHP to the earlier version (5.3.0), it wont work properly. This is because eregi is one of several functions that are deprecated in the new version of PHP.

Use preg_match with the 'i' modifier instead. i means that regular expression is case insensitive. So the code become like this:

if(!preg_match("/^[_\.0-9a-zA-Z-]+@([0-9a-zA-Z][0-9a-zA-Z-]+\.)+[a-zA-Z]{2,6}$/i"$str)) {
$msg 'email is not valid';
else {
$valid true;

The list of functions that are deprecated in PHP 5.3.0:

  • call_user_method() (use call_user_func() instead)
  • call_user_method_array() (use call_user_func_array() instead)
  • define_syslog_variables()
  • dl()
  • ereg() (use preg_match() instead)
  • ereg_replace() (use preg_replace() instead)
  • eregi() (use preg_match() with the 'i' modifier instead)
  • eregi_replace() (use preg_replace() with the 'i' modifier instead)
  • set_magic_quotes_runtime() and its alias, magic_quotes_runtime()
  • session_register() (use the $_SESSION superglobal instead)
  • session_unregister() (use the $_SESSION superglobal instead)
  • session_is_registered() (use the $_SESSION superglobal instead)
  • set_socket_blocking() (use stream_set_blocking() instead)
  • split() (use preg_split() instead)
  • spliti() (use preg_split() with the 'i' modifier instead)
  • sql_regcase()
  • mysql_db_query() (use mysql_select_db() and mysql_query() instead)
  • mysql_escape_string() (use mysql_real_escape_string() instead)
  • Passing locale category names as strings is now deprecated. Use the LC_* family of constants instead.
  • The is_dst parameter to mktime(). Use the new timezone handling functions instead.