All Entries Tagged With: "PHP"
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 [...]
Upgrade from LNMP to LNMPA
I have been using LNMP (Linux Nginx MySQL and PHP) for a year and the way I set up using LNMP automatic shell compiler really allow me to spend more time on the actual blogging and not fighting with the server configuration. If you happened to follow my blogging, you might have noticed that I [...]
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 [...]
How to Set Up LNMP on Debian, Ubuntu or CentOS
As I announced that Rockia.com has been moved to Linode VPS, I received numerous emails asking how they can do that. My answer is that if you are professional in Linux, you can just follow the tutorials in Linode Library; I strongly believe that there are more tutorials than you actually need to set up [...]
Stop Spams on your WordPress without Third Party Plugins
Having using WordPress for almost a year, I do find that lots of spams are coming every day. The good news is that there are lots of developers who contribute their knowledge and time in making some great plugins for WordPress, like Akismet and SI Captcha Anti-Spam. Normally if you use these two plugins, the [...]
Modify you WordPress theme to enable an expiration date for your posting
WordPress is a great application for people who want to set up their own blog, product display platform or even a whole site. It comes with many nice features and there is a very large community of developers who are contributing their strength to make it better and better. However, I have to say, WordPress [...]