English 中文(简体)
动态生成XML
原标题:Generating XML dynamically VS generating xml file

I have to load some XML data (generated from a database, using PHP) into a flash slideshow. The database data will change only when someone edit the website at it s backend.

在装载速度和性能方面,最好:

(1) 从数据库中动态生成XML数据,每当页装上时;

(2) 产生。 每当更新数据库时,XML文件就将用闪电文件阅读。

最佳回答
问题回答

页: 1 他不需要在接到要求时写到XML档案中,就像有人向数据库挽救了东西。 这意味着,与每次从数据库中提取数据相比,负荷速度要高得多。

当然,这取决于我们再谈多少数据,以及它是否值得先发文件。 正如@Gordon所说,进行了一些检测,看看这些测试对你来说是更好的。

我想到的是1)从数据库中动态生成XML数据,每当该网页装上时,就是一个好的选择,因为它的正常状态是html。 共同思考文件总是需要更多的资源。

这取决于贵国的法典如何,如果贵国的法典每当处理一个数据档,那么撰写文件就有意义。





相关问题
Brute-force/DoS prevention in PHP [closed]

I am trying to write a script to prevent brute-force login attempts in a website I m building. The logic goes something like this: User sends login information. Check if username and password is ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

定值美元

如何确认来自正确来源的数字。

Generating a drop down list of timezones with PHP

Most sites need some way to show the dates on the site in the users preferred timezone. Below are two lists that I found and then one method using the built in PHP DateTime class in PHP 5. I need ...

Text as watermarking in PHP

I want to create text as a watermark for an image. the water mark should have the following properties front: Impact color: white opacity: 31% Font style: regular, bold Bevel and Emboss size: 30 ...

How does php cast boolean variables?

How does php cast boolean variables? I was trying to save a boolean value to an array: $result["Users"]["is_login"] = true; but when I use debug the is_login value is blank. and when I do ...

热门标签