Jump to content

Recommended Posts

Posted

Hi,

 

I've created a program that regularly (each second) ftp's an image on our network to our website, so that it is visible to the world. It's a constantly changing picture, taken from our new wireless bird box.

 

The webpage that the image is shown on refreshes quickly, so that it looks realtime.

The original image is also ftp'd regularly.

 

Even though the image ftp's ok, the webpage doesn't always get the latest version.

 

I think there is a kind of concurrency issue going on with the ftp'ing and the client grabbing the image, that perhaps a file read/write issue might happen?

 

Any thoughts? I'm a little stumped on it. Thought about a hack using php that copies the image twice, so that the website grabs the copy instead. This would be done on the filesystem, which is a quicker action than ftp.

 

Thanks.

Posted

My first thought is caching...

 

Is the web server caching any data? Or the isp caching data?

 

Could be any number of reasons for it not to update as quickly as you are wanting it too.

  • Thanks 1
Posted

Thanks for your ideas siuko. Wasn't sure how to check the cache, but I found out it's only happening randomly, so not enough to warrant a full investigation.

 

I've finished the birdbox page, although we've not installed the box yet, so not a lot of birds around. Check out BirdBox Gallery if you're interested :)

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now



×
×
  • Create New...