MemCache – In-memory-caching in PHP

When building API-like applications in PHP, one issue will always remain; a high load will eventually slow down everything. To prevent over-loading, anyone will come to the conclusion a cache is needed. The most access calls should be served without recalculating anything to free up CPU-time.

Caching can be done on Disk, in a database (indirectly also Disk-caching), or directly in memory.

To setup MemCache and use this memory-caching-system, read on :)

Continue reading “MemCache – In-memory-caching in PHP”

Pretty-print PHP debug and error output

I know, I know, it’s been a while. Having had a very very busy month, no time for any blogging whatsoever, it’s now time for a new post. It’s just a quick note, however. How to make your var_dump()s and php-errors more readable and esthetically pleasing?

Continue reading “Pretty-print PHP debug and error output”

Adding MCRYPT to your OSX based PHP server setup

[UPDATE]: Updated for OSX 10.10 Yosemite [/UPDATE]

In my attempts to run phpMyAdmin on my development Mac I found this tutorial but, alas, it didn’t work. It resulted in numerous errors (like this one: lipo: can’t figure out the architecture type of: /var/folders/v6/nrfc_5hn12g91vzw8vff44m00000gn/T//cchRI7wl.out) and, as you guessed, the mcrypt extension did not work.

Continue reading “Adding MCRYPT to your OSX based PHP server setup”

Development WebServer on OSX Lion

So you found yourself in need of a development server (or maybe a regular production server) on your Mac… Well, good for you, because your mac can do it all. I found myself in need of it as well and wanted a stable Apache2/PHP5/MySQL installation with the PHP SVN PECL module installed. (because I want to fool around with our SVN server :) )

I can tell you 4 ways of getting a real, life ‘n kickin’, web server on OSX. Continue reading “Development WebServer on OSX Lion”

Confidental Infomation
stop spam mail