Category Archives: PHP

Unlimited SMS blast engine in Malaysia

This is a quick update. If you ever need an unlimited postpaid mass SMS blast engine then a serious consideration should be given to TM Infoblast product. For end users; There is web based interfaced for mass SMS sending There is also windows based standalone program that can serve the purpose. Import and export phonebookp […]

TM Infoblast API (via web with PHP)

TM Infoblast is a service provided by Telekom Malaysia (TM) enabling users to send and receive SMS over normal fixed line service. Yes, the normal 03-xxxxxxxx (Klang Valley) or 09-xxxxxxx (Eastern). Some might wonder why would anyone wish to use TM Infoblast while there are a lot of other providers offering the same solution, for […]

WP Autoset Featured Image (Enhanced)

There is a very cool plugin called Autoset Featured Image by Arefly. I like it because it let me getting lazy. I just post an article and put in a picture tag, the plugin then sweetly update the featured image field. Awesome. However I did some mods to it for my personal use. What Autoset […]

Serialize array safely

I have issue with putting serialized array containing “‘” into database. This is how to fix it: //to safely serialize $safe_string_to_store = base64_encode(serialize($multidimensional_array)); //to unserialize… $array_restored_from_db = unserialize(base64_decode($encoded_serialized_string)); Source here.

Installing phpmyadmin on Ubuntu and secure it

This is the link: This is how to create the htpasswd: sudo htpasswd -c /path/to/passwords/.htpasswd username and this is how to change it later on: sudo htpasswd /path/to/passwords/.htpasswd username Ref:

Google Webmaster Tools – crawl error “HTTP/1.1 404 Not Found”

Symptoms: The URL is loadable via normal browsers. However Google Webmaster Tools report crawl error of “not found”. When fetched as Google, it will return “HTTP/1.1 404 Not Found” instead of “HTTP/1.1 200 OK”. Cause: I was including WordPress “wp-blog-header.php” in my script such as: require(“subfolder/wp-blog-header.php”); This is the only reason. This is the code […]