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 you cannot access it, contact your root or server administrator. It is a daemon which allows you to schedule a program or script for a specific ...
July 3rd, 2010 | Posted in MYSQL, PHP script | No Comments
As anyone with much computer experience knows, file backups are a good thing, and better too many than none. This bit of good sense applies absolutely to database websites, where the content of nearly your entire website is contained in a database on your web server and nowhere else. If something happens (for instance, if the database gets corrupted), you'll get to experience the thrilling -poof!- of lost data. Sure, there may be a backup on the server, but ...
July 3rd, 2010 | Posted in MYSQL | No Comments
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 some point. Imagine working with the ERP system of the whole institute which hosts Oracle Database and E-Business Suite financial module. Someone has to fill the ...
July 3rd, 2010 | Posted in How to, How to DNS, Knowledge, Linux system, MYSQL, PHP script | No Comments
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 WordPress blog due to changing of domain name (such as from http://www.old-domain.com/ to http://www.new-domain.com/) or the blog to another directory location (such as from http://www.domain.com/ ...
July 3rd, 2010 | Posted in MYSQL, PHP script | No Comments
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 connections causes overheads and uses up precious CPU, memory and system resources on the web host.
Using persistent connection to connect to MySQL database server is ...
July 3rd, 2010 | Posted in MYSQL, PHP script | No Comments
WordPress plug-ins users or external scripts developers may encounter problems on when trying to perform query or manipulation on MySQL database by using $wpdb class, a class of functions for all database manipulations based on the ezSQL.
$wpdb WordPress class provides easy way to access to database tables without the need to manually code the database connection syntax in PHP again.
$wpdb provides several functions to access, retrieve, select, delete, update or manipulate the data in the database such as query, get_var, ...
July 3rd, 2010 | Posted in MYSQL | No Comments
One of the main requirements for a fast web server is to has efficient and effective SQL statements or queries that are optimized. Any non-optimal SQL (Structured Query Language) commands or statements that take too long or lengthy time to execute will use up a lot of system resources, causing MySQL database to run slower, and then more and more queries backlogs queuing up, and when connection limit is reached, visitors are been denied or refused connection. In worst case ...
July 3rd, 2010 | Posted in MYSQL | No Comments