A development tools such as Microsoft Visual Studio has debugging feature built-in where you can step through the code line by line and watch the variables. There are times when you may want to do the same thing with PHP script running in a remote (or it could be local as well) web server. It [...]
Posted on May 21st, 2009 under MacOS X, PHP • No Comments
I needed to do this when I want to debug my scripts for memory usage. My problem at that time was that as I include libraries, for some reasons PHP uses more memory even though I haven’t run a single code (other than require_once).
So my idea is to add memory_get_usage() function call on the beginning [...]
Posted on May 5th, 2009 under General Unix, Quick Tips • No Comments
On my previous article, I’ve discussed two ways to For most situation, one of those two solutions should be sufficient. There are times, however, that you need more features than the default and therefore need to customize one or more components of your MAMP stack.
For me, the need comes when I need PCNTL extension for [...]
Posted on May 3rd, 2009 under MacOS X • No Comments
This article will focus on Mac OS X 10.5 Leopard. I have no access to earlier versions of Mac OS X, so I’m afraid I can’t help you much more than providing this link.
There are many ways to enable MAMP (Mac Apache MySQL PHP) stack, but the best way, I think, is to use [...]
Posted on May 2nd, 2009 under MacOS X • No Comments
There are times when you want to alter schema for all tables in the database. For example, let’s say in your project you have multiple databases with multiple tables on each of them. Suppose that you have columns within that table defined as DECIMAL(11,6). What it means is that the column will have 11 digits [...]
Posted on April 20th, 2009 under MySQL • No Comments