Call variables from PHP to Flash (AS2)

This game I’m working on, requires Flash to call variables from PHP. The thing is, each PHP file is generated so that it has a unique ID.
How do I tell flash to call these variables, each time a new PHP file is created (which carries the same information)?