Grazie a tutti e due!Ho cercato su freephp e ho trovato uno script che fa proprio come spiegato da Valvonauta.