开发者

Passing Large amount of data in PHP

开发者 https://www.devze.com 2023-01-03 10:15 出处:网络
I would like to know what is the best way to pass a large amoun开发者_开发知识库t of XML data from one PHP script to another.

I would like to know what is the best way to pass a large amoun开发者_开发知识库t of XML data from one PHP script to another.

I have a script that reads in an XML feed of jobs. I would like to have the script display a list of the job titles as links. When the user clicks a link they would be taken to another page displaying the details for that job.

The job details are too large to send in the query string, and it seems poor style to start a session for data that isn't specific to that user.

Any ideas?


I would cache the feed in database and display the details from there. The chances are this will also improve page performance, as you can serve many users with the same cached data, which you can refresh after lets say 30 mins or whatever is suitable.


If you don't want/can read the XML files again, all you can is store it (preferably, in parsed form) somewhere. See Native XML databases.

0

精彩评论

暂无评论...
验证码 换一张
取 消