Ok - let's review first what you'd like to do, what you have available as resources, and how I'd approach it:

1) User has form box in html. Nothing else. No shockwave movie.
2) User enters text and submits.
3) A director application running on your server needs to process that text.
4) The application needs to communicate with the client.

You have php, multiuser server, full access to your server.

Using php, you need to create a socket, open a connection with a multiuser server, send a message to a script that's functioning on that server, get the message back from director, and relay some information back to the client.

You need php or a socket opening capable server side language because there's no easy way that I know to relay an open connection from a un-shocked client (thus the connection would not be direct and would be through your web server, Apache, IIS, etc) to a server side Director program. You could fuss around with it for days with opening text files and storing data and status in those, and still probably end up w/ synchronization issues if you have more users than one at a time.

So I'd create a script that opens a socket to the director server. A good place to start with PHP is http://us3.php.net/manual/en/ref.sockets.php . You need Director to be listening on a port for a message and respond in a certain way. A good place to start learning about the MUS is here: http://www.macromedia.com/support/director/multiuser/chatinminutes/chatinminutes02.html . The connection between php and your MUS is local.

So after all the details get worked out, the path would be something like so:

1) PHP script accepts message from client.
2) PHP opens socket w/ MUS and forwards the message (which contains your string)
3) A script running on your server, processes the message into an image, and saves the image on the server in a directory available to your web server.
4) Director responds back to the php script (remember, we have a connection open between the two still) with the location of the new image.
5) The php script responds back to the client w/ the location of the new image.


If you need help beyond this, or it looks too daunting, feel free to email me off list.

Cheers,
Evan

Michael von Aichberger wrote:

Hi Cole!



Or if the internet user doesn't do it directly, how could a PHP Server
connect to a Director projector via the MUI?





I'm sure it could be done with php's fgets and fputs socket commands.



Thanks for your answer. I am not a PHP geek, I just know that fgets and fputs are used to read and write to files. What exactly would be their purpose in connecting to a Director projector running an instance of the MUI Xtra?

Thanks
Michael

[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]




--


_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


*m u t a n t m e d i a* > /solutions for success // // / *Evan Adelman* | 917.916.7378 | 598 Broadway NY NY 10012 [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> | www.mutantmedia.com <http://www.mutantmedia.com>


[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]

Reply via email to