Posts filed under “PHP5”

Sending mail from PHP with Mountain Lion

Mountain Lion killed – or rather: disabled – sendmail by default. Big deal? well, if you need to send mail from PHP in your local development environment, you’ll need to perform these few steps to get it working again.

Continue reading Sending mail from PHP with Mountain Lion

Development WebServer on OSX Lion – HomeBrew/MariaDB/PECL

Apache2 is already installed on any Mac and most setups (like MAMP or MacPorts) just ignore the built in Apache and install their own version. Shame. You wouldn’t ignore your own car just and get another one to pull a trailer while your own car can do the job perfectly.

Continue reading Development WebServer on OSX Lion – HomeBrew/MariaDB/PECL

The “Ultimate” Guide to a Development Webserver on OSX

Hi all. It’s been a while since I posted something interesting, sorry ’bout that. For now I can make setting up a new web server, or upgrading it after an OSX upgrade, a bit easier. A colleague of mine tried it and ran into some problems concerning the different steps to take, so this post should help you get it done with more ease.

Continue reading The “Ultimate” Guide to a Development Webserver on OSX

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