Archive for the ‘PHP script’ Category

Tranfer all MySQL databases to another server

Saturday, July 3rd, 2010

If you want to migrate all MySQL databases from one server to another. This was a one time only operation, so setting up replication wasn’t an option. And restoring a backup on the new server involved more downtime than strictly necessary. I figured the most ideal way would be to dump the active MySQL directly [...]

Redirecting and Duplicating Content Properly

Saturday, July 3rd, 2010

There are certainly times when all Web developers and “information architects” find themselves in a situation where they need to move content from one page to another. When you do so, you need to redirect visitors from the old location to the new location, and you need to do so properly. To do that, you [...]

Running PHP Scripts with Cron

Saturday, July 3rd, 2010

Lots of programmers like PHP for its ability to code and develop web applications fast. Code-debugging is a lot easier than with PERL or C. However, there is one thing a lot of developers are puzzled about, “How to run PHP Scripts with crontab?” Cron is normally available on all Unix and Linux distributions; if [...]

Linux Server Setup Crontab Scheduled Backup

Saturday, July 3rd, 2010

The previous system administrator left work hurriedly a month ago. Thus, I inherited a Red Hat Linux Enterprise server with little knowledge. There are many others who would be more apt at the task, but they refused the position. Colleagues consider it as something scary, which entails a big responsibility. They might be right at [...]

How to Move WordPress Blog to New Domain or Location

Saturday, July 3rd, 2010

For blogger who self-hosts the WordPress blog publishing system on a web hosting server with own registered domain name, sometimes, you may decide to reorganize the blog link URL to make it tidier or to reflect new focus or theme of the blog. If you decide to change the URL or link location of your [...]

PHP-MySQL Persistent Connections to Run WordPress Blog

Saturday, July 3rd, 2010

When connecting to MySQL database, WordPress weblog based on PHP scripting will use non-persistent connection by default. That is, WordPress will trigger PHP to generate a new connection to MySQL server for each dynamic page request, and subsequently close the database connection once the web page building is completed. Repetitive opening and closing of MySQL [...]

Decode Encrypted Footer WordPress

Wednesday, July 8th, 2009

WordPress template creators typically encrypt the php code in the footer, this is done to protect a template that they have created with hard worked. But you also should appreciate the template creator by not change this code, but if you guys who still wanna change this code you can follow a few steps below. [...]