title: Intercept a request to read a particular file and instead generate the apparent output of that file read programatically
body: <p>Sorry for the long and yet still somehow vague title!</p>
  
  <p>A friend of mine has a Flash Action script running on a LAMP server that currently reads an xml config file. He's asked me if it's possible to remove the xml file, and replace it somehow with a system (lets call it an 'auto xml generator') that intercepts the request to read that file and generates an output, so it appears to all intents and purposes as if the file still exists and contains the contents that has actually been returned from our auto xml generator</p>
  
  <p>Hours of Googling has failed to come up with any promising leads, can anyone offer any advice?</p>
  
  <p>Thanks very much!</p>
  
  <p>Mike</p>