PHP/Web code for MIH project