使用XML动态存储数据并在PHP中检索数据 [英] Use of XML Dynamically Storing Data and Retrieving Data in PHP

查看:88
本文介绍了使用XML动态存储数据并在PHP中检索数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用XML文件在php中动态存储和检索数据.

how to Use of XML File for dynamically storing and retrieving data in php. It is possible or not...

推荐答案

您需要为PHP使用某种形式的序列化.请参阅:

http://www.php.net/manual/en/language.oop5.serialization.php [^ ]
http://php.net/manual/en/function.serialize.php [ ^ ],
http://www.php.net/manual/en/function.unserialize.php [ ^ ].

对于XML序列化,可以使用 PEAR (PHP扩展和应用程序存储库).请参阅:
http://en.wikipedia.org/wiki/PHP_Extension_and_Application_Repository [ http://pear.php.net/ [ ^ ].

PEAR XML序列化器在这里:
http://pear.php.net/package/XML_Serializer/redirected [ http://pear.php.net/package/XML_Serializer/download [ http://pear.php.net/package/XML_Serializer/docs [
You need to use some form of serialization for PHP. Please see:

http://www.php.net/manual/en/language.oop5.serialization.php[^]
http://php.net/manual/en/function.serialize.php[^],
http://www.php.net/manual/en/function.unserialize.php[^].

For XML serialization, you can use PEAR (PHP Extension and Application Repository). Please see:
http://en.wikipedia.org/wiki/PHP_Extension_and_Application_Repository[^],
http://pear.php.net/[^].

The PEAR XML serializer is here:
http://pear.php.net/package/XML_Serializer/redirected[^].

Download and installation:
http://pear.php.net/package/XML_Serializer/download[^].

Documentation:
http://pear.php.net/package/XML_Serializer/docs[^].

Enjoy,
—SA


这篇关于使用XML动态存储数据并在PHP中检索数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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