Intercept a request to read a particular file and instead generate the apparent output of that file

Posted by Mike Atkinson on Stack Overflow See other posts from Stack Overflow or by Mike Atkinson
Published on 2010-03-31T23:45:24Z Indexed on 2010/03/31 23:53 UTC
Read the original article Hit count: 529

Filed under:
|
|
|

Sorry for the long and yet still somehow vague title!

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

Hours of Googling has failed to come up with any promising leads, can anyone offer any advice?

Thanks very much!

Mike

© Stack Overflow or respective owner

Related posts about linux

Related posts about flash