Hipster PDA - Budget Wordpress and the dreaded "Your PHP installation appears to be missing the MySQL"

Thread Safe custom logging in PHP

28 Dec 2006

I read a lot of rediculous and convoluted suggestions as to how one would create a custom log in php, the problem of course making in thread safe in a web server environment.

Well it turns out to be this simple

errorlog($LOGGMESSAGE."\n",3,$YOURLOGFILE);

the 3 is important, see here