Why should we limit use of PHPUnit to test the features we built only? Some failures are often due to server side configuration errors in php.ini file. My effort here is to ensure that the server always runs under your specific consideration.
Some applications are often mutually exclusive; you may use one of them. Though they are NOT the drop-in replacement, their purpose is pretty similar.
I initiate XDebug on demand, via URL parameters. But XDebug configurations in php.ini has to be configured accordingly to accept those requests and obey them. Thus, only the scripts that need debugging or tracing or profiling will request the particular service. Keeping memory and CPU free is also important.
Most of your WordPress’s configurations reside at Meta Data and Options tables, namely: wp_commentmeta, wp_postmeta, wp_termmeta, wp_usermeta and wp_options.
Commenting your tables is an important activity, when you have larger number of tables, or table names do not necessary indicate the purpose of their usage.
Filtering on numerous list of MySQL tables is often fun, not just tedious. I am explaining here how to get a list of tables within a database by their prefix names. This method can be further useful when you want to operate an action on list of those tables; like changing their storage engine or, […]
The PHP’s header() feature is an excellent tool to debug with cleanly readable output.
It would be often good to embed .js file output with dynamic content. The trick is very simple: We will request Apache search for .php files if we request their .js file. For example, variables.php file will exist physically and contain the PHP scripts inside it. But it will be accessed as variables.js. We will […]