XDebug: Optimal Personal Configurations

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.

Continue reading


List out all MySQL Tables by their prefix names

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, […]

Continue reading


Serve PHP files as JavaScript 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 […]

Continue reading