# Temporary storage location? pls help, urgent!

**URL:** <https://forum.kirupa.com/t/temporary-storage-location-pls-help-urgent/265510>\
**Category:** programming\
**Created:** [July 9, 2008, 6:34pm UTC](https://forum.kirupa.com/t/temporary-storage-location-pls-help-urgent/265510 "2008-07-09T18:34:29Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![technocrat](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@technocrat](https://forum.kirupa.com/u/technocrat)\
**Post date:** [July 9, 2008, 6:34pm UTC](https://forum.kirupa.com/t/temporary-storage-location-pls-help-urgent/265510/1 "2008-07-09T18:34:29Z")

</div>

I have a computer in my exhibition stall in a remote location, and its connected to the internet via a wireless card, and it has data being pulled from customers and entered into a private website backend that we have, and this is being put into a mysql database.

what do i do to ensure there is no lag or issues if the internet goes off.  
like, is it possible for php to store the data in a temporary location till the connection is back on? and then push the data?

awaiting your reply,  
thanks.

---

<div class="post-metadata">

**Author:** ![borrob](https://avatars.discourse-cdn.com/v4/letter/b/a87d85/32.png) [@borrob](https://forum.kirupa.com/u/borrob)\
**Post date:** [July 9, 2008, 10:19pm UTC](https://forum.kirupa.com/t/temporary-storage-location-pls-help-urgent/265510/2 "2008-07-09T22:19:41Z")

</div>

i think it should be possible but complicated.

you would have to put the data of the customers in a javascript array on submit while keeping the page.

create a poll service with javascript and ajax that sends items in the array and checks if everything was received ok or else resends it.

maybe you should indicate when the array is empty?

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [July 10, 2008, 12:02am UTC](https://forum.kirupa.com/t/temporary-storage-location-pls-help-urgent/265510/3 "2008-07-10T00:02:05Z")

</div>

Yes, that would be possible. Though you might want to use a more rigid system such as storing the information in some type of file or database on the exhibition stall’s computer. That way, if the browser of that computer **does** crash, the data will still be there.

---

<div class="post-metadata">

**Author:** ![technocrat](https://avatars.discourse-cdn.com/v4/letter/t/ac8455/32.png) [@technocrat](https://forum.kirupa.com/u/technocrat)\
**Post date:** [July 10, 2008, 5:19pm UTC](https://forum.kirupa.com/t/temporary-storage-location-pls-help-urgent/265510/4 "2008-07-10T17:19:26Z")

</div>

thanks,

i was thinking the same, i decided to use a flash front end, and a php backend.  
i was thinking sharedobjects to store temporarily, would that work?

---

<div class="post-metadata">

**Author:** ![Esherido](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/esherido/32/2158_2.png) [@Esherido](https://forum.kirupa.com/u/Esherido)\
**Post date:** [July 10, 2008, 9:50pm UTC](https://forum.kirupa.com/t/temporary-storage-location-pls-help-urgent/265510/5 "2008-07-10T21:50:18Z")

</div>

^ Yes, that would work very well.
