Why so many settings in Chamilo’s configuration.php?

If you install Chamilo 1.11.6, for example, and dive into the details of its configuration, you might get confused by the fact that we have a “settings_current” table in the database at the same time as we have a (large)…

More Details
Twig errors with custom template on Chamilo upgrade

If you use Chamilo and decided to develop your own template, you might be faced with an issue while upgrading from Chamilo 1.11.2 (or below) to 1.11.4 (or above). The issue will usually be reflected by either of these: a…

More Details
Remove permanent redirect (HTTP 301) cache in Firefox

As a web developer configuring SSL certificates on websites you deliver, as we do, you might be faced, one day, with a small issue about configuring a 301 redirect from HTTP to HTTPS that has to be reverted. It so…

More Details
Chart of execution time between dirname(__FILE__) and __DIR__ in PHP, showing 4 to 10 times efficiency improvement using __DIR__
dirname(__FILE__) vs __DIR__, which is faster?

If you’re developing PHP software today but studied PHP based on old-ish manuals or manuals written by people who did, you might find a mix of calls to dirname(__FILE__) and __DIR__ and wonder what the difference is… Past the fact…

More Details
Avoiding the eternal effect of an HTTP 301 permanent redirect

This article should be extended soon, but in the meantime, we thought this article Mark S. Kolich couldn’t be missed if you’re having issues with HTTP 301 permanent redirect configurations. http://mark.koli.ch/set-cache-control-and-expires-headers-on-a-redirect-with-mod-rewrite An interesting discussion was also going on in the…

More Details
Versions of PHP in Ubuntu

If you have to maintain an open source project written in PHP, like we do with Chamilo at BeezNest, you’ll have to test your software on multiple versions of PHP to make sure of how well your code is supported…

More Details
Awesome git tree on the command line

This command mentionned by Pete Doherty, found on in the comments of this article http://gitready.com/intermediate/2009/03/04/pick-out-individual-commits.html, is simply awesome: git log –graph –pretty=format’:%C(yellow)%h%Cblue%d%Creset %s %C(white) %an, %ar%Creset’ It will show something like this (in the terminal)

More Details
Benchmark: dirname(__FILE__) vs __DIR__ in PHP

dirname(__FILE__) and __DIR__ give exactly the same result in PHP, although one (__DIR__) is evaluated at compile-time, while the other (dirname(__FILE__)) has at least part of it (the function) evaluated at execution time. Ever wondered what the difference is, in…

More Details
Can’t use function return value in write context

Did you ever develop some nice code, then simply wanted to check if a string was only composed of white spaces or tabs, and used something like this: if (!empty(trim($string))) { … } …only to get a bad error appear…

More Details
Crowdin terms review for Chamilo LMS translations

As we migrate to gettext for Chamilo LMS v10, we are also looking for a platform to host our translation system (considering our current translation system does not support gettext). We will migrate most existing translations, but we were looking…

More Details

Quick Contact Form