Upgrade Chamihost to 1.9.6

For those having started a Chamihost hosting before the 1.9.6, you can easily upgrade your version using the following script, uploading it to your Chamilo directory (through FTP) and loading it from your browser.
<html>
<body>
Downloading upgrade&nbsp;<?php
ini_set('display_errors',true);
ini_set('error_reporting',6143);

$d = __DIR__.'/';
$f = @fopen('http://zap.beeznest.com/temp/chamilo-1.9.6-upg.tar.gz','r');
if ($f === false) {
  die($php_errormsg);
}
$l = @fopen($d.'archive/chamilo.tar.gz','w');
if ($l === false) {
  die($php_errormsg);
}
while ($line = fread($f,1