Flash and PHP

I have a flash file and I have the dynamic text with the variable name ‘Text1’ I want to be able to edit this piece of text by linking the flash file to a php file - but i know nothing about php and therefore i don’t know what coding to use in flash to link to php. All i need is a basic bit of coding which would be able to put in php so that one bit can be edited so that it will be edited in the swf.