Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Message from discussion Calling mxmlc/fcsh from PHP script
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Luke Schreur  
View profile  
 More options May 3 2010, 5:45 pm
From: Luke Schreur <luke.schr...@gmail.com>
Date: Tue, 4 May 2010 07:45:56 +1000
Local: Mon, May 3 2010 5:45 pm
Subject: Re: [FlashAussie] Calling mxmlc/fcsh from PHP script

You can simply call any external program from PHP by using the exec
function:

http://php.net/manual/en/function.exec.php

If you're on a unix type system such a OSX or Linux, you do need to make
sure that you have all the permissions right. Since the script will be
triggered in the scope of the web-server you need to make sure that that
scope can execute your calls.

On the other hand, I'm wondering why you're generating .as files. Are you
sure you can't solve your particular problem by loading a dataset instead?

Cheers,
Luke

On Tue, May 4, 2010 at 12:30 AM, kanu kukreja <kanukukr...@gmail.com> wrote:
>  Hi,

> My question is whether or not Flex's mxmlc can be called from within a PHP
> script. Here is the background:

> I have been created a simple process that creates a simple quiz/tutorial by
> converting a text file into a .as file and compiling to a .swf file using
> the mxmlc compiler. This works well from the command line, but I wanted to
> make the process easier by creating a web-interface to do this.  I have not
> been able to get the mxmlc compiler to work.

> After searching on the Web and on this site, I believe that using fcsh
> (instead of mxmlc) may be the way to go. Using fcsh would certainly compile
> the .mxml file faster (after the first run), and I think that fcsh can be
> launched as a service that might be able to be called from PHP.

> On the other hand, maybe I am approaching this the wrong way. Would it be
> better to write a Flex application that calls fcsh/mxmlc and avoid using
> PHP?

> Thanks

> Kanu kukrejA

> --
> You received this message because you are subscribed to the Google Groups
> "Flash Aussie" group.
> To post to this group, send email to flashaussie@googlegroups.com.
> To unsubscribe from this group, send email to
> flashaussie+unsubscribe@googlegroups.com<flashaussie%2Bunsubscribe@googlegr oups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/flashaussie?hl=en.

--
You received this message because you are subscribed to the Google Groups "Flash Aussie" group.
To post to this group, send email to flashaussie@googlegroups.com.
To unsubscribe from this group, send email to flashaussie+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/flashaussie?hl=en.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.