I'm on a RedHat server, with a simple PHP page that has a form, with inputs for name, phone, and url.
When the form is submitted, I run a command to compile a swf using mxmlc. The command is this :
$generate_command1 = "export _JAVA_OPTIONS=\"-Xms32m -Xmx64m\"; /opt/flex/bin/mxmlc -define+=NAMES::Name,\"\'$name\'\" -define+=NAMES::Phone,\"\'$phone\'\" -define+=NAMES::Website,\"\'$url\'\" -output /path/to/my/webserver/httpdocs/swfbuilder/generated.swf DynamicTextTest.as";
$last_line = exec($generate_command1, $out);
print_r($last_line);
The result is always :
Loading configuration file /opt/flex/frameworks/flex-config.xml
When I run the same command from ssh into the server, I actually get a swf generated. I.e.
Picked up _JAVA_OPTIONS: -Xms32m -Xmx64m
Loading configuration file /opt/flex/frameworks/flex-config.xml
/var/www/vhosts/tag.domandtom.com/httpdocs/swfbuilder/generated.swf (945 bytes)
[root@htmlfive swfbuilder]#
Both directory and files have been CHOWN'd for ownership and CHMOD'd for 775... So what am I doing wrong to get this to work from the web page? Should I have a forked process and wait until it's complete? Sleep?
EDIT:
I've looked into fcsh and other mxmlc / java related questions.