I am looking at improving my app.
I have an app and it works well testing it. To keep images and information updated on my app, I have the app a couple times a day scan the remote directory and compare modification dates. Example, image1.jpg locally gets compared to image1.jpeg on the remote server. If the dates are different it downloads the new image and replaces the old one. it works very well.
The problem is it only scan when the app is active and it scans every item maybe 200-300 items. With a good internet connection it takes about 45 seconds. Slow connection many minutes. (I used an UIlabel to display the time elapsed it to from start to finish).
Can PHP ( I know very little about PHP) scan the directories and create a list of items that have changed day to day? Then the iPhone can down load that list and download only the files that need to be downloaded instead of checking every files mod dates for a change? I am up for any ideas or technologies that I am unaware of that might help speed up this process.
Thanks
I have an app and it works well testing it. To keep images and information updated on my app, I have the app a couple times a day scan the remote directory and compare modification dates. Example, image1.jpg locally gets compared to image1.jpeg on the remote server. If the dates are different it downloads the new image and replaces the old one. it works very well.
The problem is it only scan when the app is active and it scans every item maybe 200-300 items. With a good internet connection it takes about 45 seconds. Slow connection many minutes. (I used an UIlabel to display the time elapsed it to from start to finish).
Can PHP ( I know very little about PHP) scan the directories and create a list of items that have changed day to day? Then the iPhone can down load that list and download only the files that need to be downloaded instead of checking every files mod dates for a change? I am up for any ideas or technologies that I am unaware of that might help speed up this process.
Thanks