Search code examples
timeoutfeedsimplepie

what does exactlly simplepie set_timeout() work?


I want to know what does set_timeout (30) do?! I read document about this from simple pie docs

Allows you to override the maximum amount of time spent waiting for the remote feed's server to respond and send the feed back so that we can begin processing it.

I don't understand what does it work!?! does it make to fast loading of website or not?!


Solution

  • This function will allow you to override the maximum amount of time that it waits for response from the server. Meaning, if the server sometimes has bad response time you can set it to wait longer for it. Instead of proceeding.

    It can make it faster or slower. Depends on what you input in the parameters.