try generating earnings in php