I have a small PHP file that is used to retrieve data from a 3rd party via SOAPClient process every 10 seconds or so. To do this I have the PHP file loaded each time to trigger another SOAP request. My hosting company says that my site is using extraordinary resources and I wonder what I can do to reduce any strain on the hosting. I have 2 simple questions.
1. The file establishes a 'new SOAPClient' every time it loads but is always the same 3rd party WSDL file. Do I need to do this each time and, if so, does this action require 'closing' at the end of the PHP file (like using mysql_close after accessing a database)?
2. Is there a simpler, more efficient way using PHP SOAPClient to get this data every 10-15secs?
If the answer to no1 is proven to be 'yes - it should be closed' then there is no need for an answer to no2.
Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.