Jump to content

load time? php writing xml documents


koolaid

Recommended Posts

Hey guys i have a 2 part question. I need to copy an xml file from a remote domain to my own domain, to display an RSS feed. I have php doing this.

 

Well, the first part of my question if i have PHP do this every time the page is requested, i think it would increase load time + processor usage, and i would imagine that if i have 10,000 people going to the page at once it could create all kinds of errors, right?

 

Could i write a conditional statement that would only copy the file if it hasn't been modified in more then an hour, if so how? Or is there a better way to do this? Or is having it write everytime the page is requested be ok.

 

Your advice + help is greatly appreciated.

Link to comment
https://forums.phpfreaks.com/topic/151239-load-time-php-writing-xml-documents/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.