简体   繁体   中英

Passing Large amount of data in PHP

I would like to know what is the best way to pass a large amount 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 .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM