All Entries in the "Programming" Category
IP-changed notifier without crontab
I wrote about how to notify myself upon IP changes via email for Home Servers quite a while ago. The theory was simple; just one PHP script to detect the current IP address and compare it with the one stored in a text file. If the IP was changed, then update the text file and [...]
Notify myself upon IP Changes via email for Home Servers
I have set up a server at home and I do most of the PHP testing upon that server. Other than HTTP server, it also serves as a FTP server and a remote desktop (I am a Mac user, and I can connect back home whenever I need Windows). As I noted before, most the [...]
PHP str_replace(): How to replace only one ordered occurrence for arrays
I am currently writing a script that requires the string to be replaced, the str_replace() function in PHP can take arrays as the parameters according to the PHP Manual: mixed str_replace ( mixed $search , mixed $replace , mixed $subject [, int &$count ] ) This function returns a string or an array with all [...]
Guide to decode based64 encrypted WordPress theme
Why am I writing this guide? I really didn’t expect my post “Decode base64 encrypted PHP WordPress Theme files” will draw so much attention and it seems like more and more people want me to help them decode their WordPress themes. As everyone could see in the following comments at the end of the post, [...]
WordPress URL Rewrite for Nginx
Some people say WordPress works the best on LAMP (Linux, Apache, MySQL and PHP) but I chose LNMP as my server structure. If you have Nginx as your web server, you might be able to see tongs of “404 error” due to the incorrect URL rewrite rules. To fix this problem, it’s just two simple [...]
How to Fix WordPress Email Sending Problem
After the plug-in update/install problem was solved, seems like I have another problem of my WordPress. For my Contact Page , I am using a plug-in called “Fast and Secure Contact Form” to handle the message left on my blog; the plug-in will use PHP’s mail function and redirect the message to the email address [...]
Easter Eggs on WordPress
A couple weeks ago, a friend of mine called me up and told me he worried about his WordPress was hacked because for somehow he saw messages like “Wake up, webmasters.”. I checked through his log files and there was no sign of his blog being hacked so I comfort him that nothing was wrong, [...]