PHP and XML
am 22.11.2009 20:27:39 von juan
Hi people,
I have some doubts about this topic that I'm gonna explain.
I have a few sites in flash, and I was requested to write a PHP frontend
to send news. I have this already done and it works perfect. It's a LAMP
App to send and edit news, post video, images and so on.
Then, I need to put all this news into the Flash site. So, I need to use
XML. I'm not gonna discuss about Flash, because this is a PHP List,
however I would like to talk about PHP and XML.
What do you recommend me to produce XML from those news of the SQL
database?. What do you suggest to output XML from the existing content
to then put those XML files into Flash.
The posted news are saved in a MySQL database. I don't know if do I need
to output from PHP then parse the output and convert it to XML, or if Do
I need to get the array from the MySQL and directly output this to an
XML file to then get from this file from Flash.
Thanks,
Juan.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and XML
am 23.11.2009 02:50:09 von Phpster
I would just use concatenations and strings to build the XML. It's not =20=
gonna matter to the flash swf when it gets the string as it will =20
attempt the data as XML.
Bastien
Sent from my iPod
On Nov 22, 2009, at 2:27 PM, Juan Marcelo RodrÃguez Monti =
r> wrote:
> Hi people,
> I have some doubts about this topic that I'm gonna explain.
>
> I have a few sites in flash, and I was requested to write a PHP =20
> frontend to send news. I have this already done and it works =20
> perfect. It's a LAMP App to send and edit news, post video, images =20
> and so on.
>
> Then, I need to put all this news into the Flash site. So, I need to =20=
> use XML. I'm not gonna discuss about Flash, because this is a PHP =20
> List, however I would like to talk about PHP and XML.
>
> What do you recommend me to produce XML from those news of the SQL =20
> database?. What do you suggest to output XML from the existing =20
> content to then put those XML files into Flash.
>
> The posted news are saved in a MySQL database. I don't know if do I =20=
> need to output from PHP then parse the output and convert it to XML, =20=
> or if Do I need to get the array from the MySQL and directly output =20=
> this to an XML file to then get from this file from Flash.
>
> Thanks,
> Juan.
>
>
> --=20
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and XML
am 23.11.2009 06:31:33 von Sudheer Satyanarayana
> What do you recommend me to produce XML from those news of the SQL
> database?. What do you suggest to output XML from the existing content
> to then put those XML files into Flash.
>
> The posted news are saved in a MySQL database. I don't know if do I
> need to output from PHP then parse the output and convert it to XML,
> or if Do I need to get the array from the MySQL and directly output
> this to an XML file to then get from this file from Flash.
From your PHP script, query the database, obtain the results in an
array or object. Using the result variable build the XML file.
--
With warm regards,
Sudheer. S
Tech stuff: http://techchorus.net - Pro PHP XML - Book Review
Business: http://binaryvibes.co.in
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and XML
am 23.11.2009 17:25:24 von Nathan Rixham
Juan Marcelo Rodríguez Monti wrote:
> Hi people,
> I have some doubts about this topic that I'm gonna explain.
>
> I have a few sites in flash, and I was requested to write a PHP frontend
> to send news. I have this already done and it works perfect. It's a LAMP
> App to send and edit news, post video, images and so on.
>
> Then, I need to put all this news into the Flash site. So, I need to use
> XML. I'm not gonna discuss about Flash, because this is a PHP List,
> however I would like to talk about PHP and XML.
>
> What do you recommend me to produce XML from those news of the SQL
> database?. What do you suggest to output XML from the existing content
> to then put those XML files into Flash.
>
> The posted news are saved in a MySQL database. I don't know if do I need
> to output from PHP then parse the output and convert it to XML, or if Do
> I need to get the array from the MySQL and directly output this to an
> XML file to then get from this file from Flash.
>
> Thanks,
> Juan.
>
flash remoting: you could use amf instead; its faster and easier to use.
on the php side just use http://amfphp.org/ or suchlike
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and XML
am 24.11.2009 15:16:12 von juan
El d=EDa 23 de noviembre de 2009 13:25, Nathan Rixham
escribi=F3:
> Juan Marcelo Rodr=EDguez Monti wrote:
>> Hi people,
>> I have some doubts about this topic that I'm gonna explain.
>>
>> I have a few sites in flash, and I was requested to write a PHP frontend
>> to send news. I have this already done and it works perfect. It's a LAMP
>> App to send and edit news, post video, images and so on.
>>
>> Then, I need to put all this news into the Flash site. So, I need to use
>> XML. I'm not gonna discuss about Flash, because this is a PHP List,
>> however I would like to talk about PHP and XML.
>>
>> What do you recommend me to produce XML from those news of the SQL
>> database?. What do you suggest to output XML from the existing content
>> to then put those XML files into Flash.
>>
>> The posted news are saved in a MySQL database. I don't know if do I need
>> to output from PHP then parse the output and convert it to XML, or if Do
>> I need to get the array from the MySQL and directly output this to an
>> XML file to then get from this file from Flash.
>>
>> Thanks,
>> Juan.
>>
>
> flash remoting: you could use amf instead; its faster and easier to use.
>
> on the php side just use http://amfphp.org/ or suchlike
Thanks. I didn't know that. Did you test this applications ? How well
does it work ?.
Juan
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: PHP and XML
am 24.11.2009 16:56:08 von Nathan Rixham
Juan wrote:
> El día 23 de noviembre de 2009 13:25, Nathan Rixham
> escribió:
>> Juan Marcelo Rodríguez Monti wrote:
>>> Hi people,
>>> I have some doubts about this topic that I'm gonna explain.
>>>
>>> I have a few sites in flash, and I was requested to write a PHP frontend
>>> to send news. I have this already done and it works perfect. It's a LAMP
>>> App to send and edit news, post video, images and so on.
>>>
>>> Then, I need to put all this news into the Flash site. So, I need to use
>>> XML. I'm not gonna discuss about Flash, because this is a PHP List,
>>> however I would like to talk about PHP and XML.
>>>
>>> What do you recommend me to produce XML from those news of the SQL
>>> database?. What do you suggest to output XML from the existing content
>>> to then put those XML files into Flash.
>>>
>>> The posted news are saved in a MySQL database. I don't know if do I need
>>> to output from PHP then parse the output and convert it to XML, or if Do
>>> I need to get the array from the MySQL and directly output this to an
>>> XML file to then get from this file from Flash.
>>>
>>> Thanks,
>>> Juan.
>>>
>> flash remoting: you could use amf instead; its faster and easier to use.
>>
>> on the php side just use http://amfphp.org/ or suchlike
>
> Thanks. I didn't know that. Did you test this applications ? How well
> does it work ?.
>
> Juan
>
yeah it's great, all stable, and been used for years in most enterprise
apps - that's what flash remoting is; and AMF is adobe message format..
so official feature :) also mucho support in java etc (and all langs afaik).
regards!
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php