Constant feed of data

I have to send a very large amount of data to php from flash. This data is collected in about 30 seconds. After the data is collected flash sends the data to php. I want to send the data during the collect time. So, if the flash starts collecting data, he will also automatically send the data to the php script. Is there a way to do this, or i have to collect all the data and only after this, send it to php?

Thanks for the help

Also, if there is any other way to do this than php, please tell me… Thanks again