Re: explode and escape character for string separator
| From: | Reuben D. Budiardja | Date: | Fri, 18 Jul 2003 20:09:00 +0000 |
| Subject: | Re: explode and escape character for string separator | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-155833@lists.php.net to get a copy of this message | ||
On Friday 18 July 2003 03:43 pm, CPT John W. Holmes wrote:
> From: "Reuben D. Budiardja" <reubendb@innovativethought.com>
>
> > This is a hypothetical situation. The real situation is that I am trying
>
> to
>
> > have a protocol for data sent by client using Flash. But the basic
>
> question
>
> > remains.
>
> So FLASH is creating the string that you must decode in PHP? Is there any
> way to URL encode things in flash? URL encode the data, separate with &
> (just like a query string), and then it'll be easy to decode on the PHP
> side.
Flash has its own built in method for sending/uploading data to a URL, using
the GET or POST protocol, so that's taken care of.
What I am trying to do is to send a structured data set and create my own
protocol for doing so. For example, when the Flash send this string
col1:col2@col3:col4
My PHP code will interpret it as a table, and construct a correspoding HTML
table
------|------
col1 | col2
------|------
col3 | col 4
etc. We will try to send structured data of graph, multiple choice options and
answer, etc using this method as well. That's why we have this problem.
RDB
--
-------------------------------------------------
/"\ ASCII Ribbon Campaign against HTML
\ / email and proprietary format
X attachments.
/ \
-------------------------------------------------
Have you been used by Microsoft today?
Choose your life. Choose freedom.
Choose LINUX.
-------------------------------------------------