Se non va bene una soluzione PHP, perche' hai postato nel forum PHP?
about me stackoverflow profile
Regole del Forum