Fmpdsoresult to disk using php

Hi there all,

Is there any help to my problem out there?
I´ve been trying to find the way how to save fmpdsoresult to disk (server)

I can get the fmpdsoresult into Flash with no problem, but
I would like to save the fmpdsoresult-xml-file to disk, and the use that file
in flash. The reason is that every time flash enters or refreshes makes a new
query to filemaker and that I don’t like, and also if the filemaker-server is in maintenance, my flash movie is info-dead.

I know that you can trigger a php file from the server automatically.

Thanks in advance