PHP code for the server-side of the GIS functionalities implemented by Iván (UU)