Flex 3: mxml to swf

HI Everyone,

I have Flex 3 installed on my Windows XP System.

I have manged to compile an HelloWorld.mxml to HelloWorld.swf using the Flex Command Line Interface.

The Content of the mxml file is

<?xml version="1.0"?>
<Application xmlns="http://www.adobe.com/2006/mxml">
  <Label text="Hello, world!" />
</Application>
 

I was able to do this using the following command


C:\\Program Files\\Adobe\\Flex Builder 3>mxmlc c:\\HelloWorld.mxml

The above command converted the mxml file to swf.

Now can someone please tell me how do I run this command using PHP?

Many Thanks in Advance

You use the php exec command or similar. Passing any data through to exec is a security risk, so any user defined data included within the exec string needs to be checked for malicious content.