Re: Flash-PHP Socket Connection

From: Date: Tue, 20 Jan 2004 21:51:30 +0000
Subject: Re: Flash-PHP Socket Connection
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-175206@lists.php.net to get a copy of this message
What I mean is: you shouldn't need to use sockets to read in a file from Flash unless you're trying to do something more complicated, but from the way it sounds, you just want to pull data from MySQL with a PHP script and output it to Flash. The PHP script could just echo plain text and Flash can read that in just fine without needing to connect via a socket. -Ben Ben Ramsey wrote:
Flash has the ability to read in text files, so you could use PHP to output data in the correct format and use Flash to read the PHP script like it reads a text file. We did this in ASP once upon a time. Here's a tutorial about reading text files into Flash: http://www.virtual-fx.net/tutorials/html/loadtextfile.htm Also, from what I understand, Flash now has a great XML parser, so you could use PHP to generate XML and Flash could read in the XML as variables. You might want to look into that, but I think it's only available in the newest version. -Ben Eric Bolikowski wrote:
Hi everybody I'm working on a site that will be based on Flash, PHP and MySQL. PHP will work as a middleware for Flash and MySQL. My problem is communication between Flash and PHP. I'm really out looking for using the socket functions in PHP and Flash to make fast connection. I have googled for almost an hour now, and I can't seem to find any interesting. The only info I find, is about sending data between Flash and PHP with HTTP GET or HTTP POST. So if anybody has some general information on this or a link to a tutorial on the subject, I would like to get those resources. Thanks a lot Eric


« previous php.general (#175206) next »