php和XML问题 [英] php and XML question

查看:53
本文介绍了php和XML问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我目前负责开发一个应用程序,让我们使用来自的数据动态构建
XML文件MySQL的。我已经做了一些研究,并且发现我需要使用domxml扩展来使用PHP库来执行此操作。

不幸的是,我们的主机没有'''安装了这个,所以解析器都不会识别

函数。


我的问题:还有另一种解决方法吗?如果没有这个扩展,是否可以使用PHP从MySQL填充XML文档

(当然这是从表单数据中填充的)。关于

采取什么方向的建议?在此先感谢。

Hello all,

I''m currently in charge of developing an application that will let us build
XML files on the fly using data from MySQL. I''ve done a bit of research, and
found I''ll need the domxml extension to do this with PHP libraries.
Unfortunately, our host doesn''t have this installed, so none of the
functions are recognized by the parser.

My question: Is there another way around this? Without this extension, is it
going to be possible to use PHP to populate an XML document from MySQL
(which of course is populated from form data). Any advice on what direction
to take? Thanks in advance.

推荐答案



Jon写道:

Jon wrote:
大家好,

我目前负责开发一个应用程序,让我们使用来自MySQL的数据动态构建XML文件。我已经做了一些研究,并且发现我需要使用domxml扩展来完成PHP库。
不幸的是,我们的主机没有安装这个,所以没有
函数被解析器识别。

我的问题:还有另一种解决方法吗?如果没有这个扩展,是否可以使用PHP来填充MySQL的XML文档
(当然这是从表单数据中填充的)。
采取何种方向的建议?在此先感谢。
Hello all,

I''m currently in charge of developing an application that will let us build
XML files on the fly using data from MySQL. I''ve done a bit of research, and
found I''ll need the domxml extension to do this with PHP libraries.
Unfortunately, our host doesn''t have this installed, so none of the
functions are recognized by the parser.

My question: Is there another way around this? Without this extension, is it
going to be possible to use PHP to populate an XML document from MySQL
(which of course is populated from form data). Any advice on what direction
to take? Thanks in advance.




你想用XML做什么?我的意思是,为什么需要它。

我问的原因是可能有更好的方法来做事。如果你试图通过网络将数据传送给其他人,那么它将更好地使用SOAP,在这种情况下,nusoap将非常适合

你。



What are you trying to do with the XML? I mean, why the need for it.
The reason I ask is there may be a much better way to do things. If
you''re trying to shuttle data to other people over the web then it
would be better to use SOAP, in which case nusoap will be perfect for
you.




" Treefrog" <在** @ designstein.co.uk>在消息中写道

news:11 ********************** @ i40g2000cwc.googlegr oups.com ...

"Treefrog" <in**@designstein.co.uk> wrote in message
news:11**********************@i40g2000cwc.googlegr oups.com...

Jon写道:

Jon wrote:
大家好,

我现在负责开发一个让我们构建的应用程序
使用MySQL数据动态获取XML文件。我已经做了一些研究,

发现我需要使用domxml扩展来完成PHP库。
不幸的是,我们的主机没有安装这个,因此解析器无法识别任何
函数。

我的问题:还有另一种解决方法吗?没有这个扩展,就可以使用PHP来填充MySQL的XML文档
(当然这是从表单数据中填充的)。有关
方向的建议吗?在此先感谢。
Hello all,

I''m currently in charge of developing an application that will let us
build
XML files on the fly using data from MySQL. I''ve done a bit of research,
and
found I''ll need the domxml extension to do this with PHP libraries.
Unfortunately, our host doesn''t have this installed, so none of the
functions are recognized by the parser.

My question: Is there another way around this? Without this extension, is
it
going to be possible to use PHP to populate an XML document from MySQL
(which of course is populated from form data). Any advice on what
direction
to take? Thanks in advance.



您在尝试使用XML做什么?我的意思是,为什么需要它。
我问的原因是可能有更好的方法来做事。如果您试图通过网络将数据传送给其他人,那么使用SOAP会更好,在这种情况下,nusoap将非常适合您。



What are you trying to do with the XML? I mean, why the need for it.
The reason I ask is there may be a much better way to do things. If
you''re trying to shuttle data to other people over the web then it
would be better to use SOAP, in which case nusoap will be perfect for
you.




好​​吧,我们已经创建了一个RSS提要页面,用于为我们的客户解析带有

公司信息的XML文档。带有feed的php页面还有一个指向pcast文件的

链接,因此他们可以将其作为播客推送到iTunes中。我们已经设置了它,因此他们可以将XML链接复制/粘贴到他们喜欢使用的任何聚合器

中。所以基本上,这是我们的3层交易,所以我们可以通过各种方式向客户提供

信息。


我的老板现在希望我们开发一种方式,以便我们的客户可以创建他们自己的Feed和上传文件,以便其他人可以看到他们的Feed。基本上,我将需要我们现在使用的XML文档

根据从HTML / PHP表单发送的数据动态填充。关于nuSoap,我已经阅读过

了,但我真的很困惑。我知道我们确实需要XML

文档供聚合器阅读,但是对于这个

技术还不太了解。不幸的是,它对行业来说是新的,而且它是真正的新的

我们 - 而且只有我自己和另外一个开发人员,所以我们的资源和

时间有限。对于这种疯狂,有没有比我们现在使用的b $ b更好的方法?



Well, we''ve created an RSS feed page that parses an XML document with
company information for our customers. The php page with the feed also has a
link to a pcast file so they can push it into iTunes as a podcast. We''ve
also set it up so they can copy/paste the XML link into whatever aggregator
they prefer to use. So basically, it''s a 3-tier deal for us so we can get
information out to our customers in a variety of ways.

My boss now wants us to develop a way so that our customers can create their
own feeds and upload files so that other people can see their feed. So
basically, I''m going to need the XML document that we''re using now to be
dynamically populated based on data sent from an HTML/PHP form. I''ve read
about nuSoap a bit, but am really confused by it. I know we do need the XML
document for aggregators to read it, but don''t know much else about this
technology. Unfortunately, it''s new to the industry, and it''s REALLY new to
us - and there''s only myself and one other developer, so our resources and
time are limited. Is there a better method to this madness than what we''re
using now?


Jon写道:
大家好,

我目前负责开发一个应用程序,让我们使用来自MySQL的数据动态构建XML文件。我已经做了一些研究,并且发现我需要使用domxml扩展来完成PHP库。
不幸的是,我们的主机没有安装这个,所以没有
函数被解析器识别。
Hello all,

I''m currently in charge of developing an application that will let us build
XML files on the fly using data from MySQL. I''ve done a bit of research, and
found I''ll need the domxml extension to do this with PHP libraries.
Unfortunately, our host doesn''t have this installed, so none of the
functions are recognized by the parser.



如果他们想要你的业务,让他们安装它,或者改变提供者......


-

Ian Collins。


If they want your business, get them to install it, or change provider...

--
Ian Collins.


这篇关于php和XML问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆