Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.