Current location: Hot Scripts Forums » Programming Languages » PHP » Server down whilst running a script


Server down whilst running a script

Reply
  #1 (permalink)  
Old 06-12-09, 04:42 AM
Deansatch Deansatch is offline
Coding Addict
 
Join Date: Jul 2006
Location: Northumberland
Posts: 375
Thanks: 0
Thanked 0 Times in 0 Posts
Question Server down whilst running a script

I write a lot of CMS's for my clients and ran into a nasty little problem the other day. When I spent ages creating and populating a page, I click on "save & publish" but the server had a slight moment of downtime so I got the page load error. I clicked refresh and was presented with the blank forms. All my work was gone.

Is there a way of preventing this somehow?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 06-12-09, 05:57 AM
smithygotlost smithygotlost is offline
Aspiring Coder
 
Join Date: Jul 2006
Location: United Kingdom
Posts: 412
Thanks: 12
Thanked 3 Times in 3 Posts
not really, this is a problem with most things unless and it might be a bit.... but hey

make an ajaxx for your forms so as you fill them in onfocus out it sends that field to the db. however this is a bit drastic for the site to only go down once in a blue moon

sorry to say its just one of those things, best way type it all in word then paste it and submit that way it goes wrong you just paste it again
Good luck
Mike
__________________
Make People Friendly Say " Thanks "
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 06-12-09, 10:07 AM
Thyrosis's Avatar
Thyrosis Thyrosis is offline
Newbie Coder
 
Join Date: Dec 2008
Location: South UK
Posts: 66
Thanks: 2
Thanked 0 Times in 0 Posts
I suppose that depending on the browser you could click 'return' rather then 'refresh', as sometimes the input field values are still there. But you can't really tell people that when the page won't load, so that doesn't work either
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 06-12-09, 04:22 PM
=OTS=G-Man =OTS=G-Man is offline
Newbie Coder
 
Join Date: Jun 2009
Posts: 55
Thanks: 0
Thanked 0 Times in 0 Posts
Google chrome is good at saving form data. Ive had times where ill submit and server not be there, and when I hit the back button, it takes me to the form and re-populates it, so i can try submitting again.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 06-13-09, 10:59 AM
wirehopper's Avatar
wirehopper wirehopper is offline
-
 
Join Date: Feb 2006
Posts: 2,516
Thanks: 20
Thanked 109 Times in 106 Posts
One very good approach is to write the content in a text file, save it, then paste it into the CMS through the browser.

Good for all sorts of things when you're investing a lot of time in text.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Raffle/Lottery Script (Very profitable!), Coded it myself. Voltaire General Advertisements 6 03-16-09 08:15 AM
php file are not running on new server. garysinger PHP 4 09-22-08 05:04 AM
Status2k - Server Monitoring Script! scribby General Advertisements 0 04-16-08 02:32 AM
Raffle/Lottery Script (Very profitable!), Coded it myself. Voltaire General Advertisements 2 01-03-06 12:55 AM
Running a script 24 / 7 / 365 on a ASP server nilshv ASP 3 05-26-05 08:02 AM


All times are GMT -5. The time now is 07:33 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.