php ile değil de sunucuya kurulacak bir programı php exec ile çalıştırarak olabilir
facebook mesela bunu çok iyi yapıyor