Change Timezone in PHP

Assuming your webserver isn’t in the timezone, it is expected - bought a cheap server in a foreign country ;) - you have two, actually three, ways to solve this. 1. During runtime This solution nessetiates the fewest permissions. Just execute putenv("TZ=Europe/Vaduz"); in your PHP script and done. Drawback: you have to do for every execution. 2. Permanent If you’re allowed to modify the php.ini, probably in /etc/php5/apache2/php.ini and change the parameter...

February 27, 2009 · 1 min · Markus Ruepp

Zend Lucene 64bit troubles

Apparently Zend Lucene suffers from troubles on 64 bit machines, several bugs ( Exception opening index on 64bit platforms, Lucene doesn’t work on 64-bit). Thats the bad news! The good news is that those bugs can be easily be fixed, the solution is here....

February 26, 2009 · 1 min · Markus Ruepp

Zend Lucene and Java Lucene

If you want to realize a fulltext search engine you can’t ignore Apache Lucene and its port for Java. This powerful implementation uses a reverse index, like google does, and its results are pretty good. Unfortuantely most webhoster won’t support Java therefore you could switch to the PHP port of lucene implemented by the PHP framework Zend, called Zend Lucene. Thankworthy both implementations are compatible, you just have to consider the right version....

February 22, 2009 · 1 min · Markus Ruepp