Basically it allows actions that usually would be performed by a page refresh through PHP to get more information from a database to be performed a page refresh such examples can be seen if you go to scriptalicious looks like a Ajax API. I have never used Flash so I can't speak of its replacability.