Originally posted by bobsyouruncle
View Post
- Visitors can check out the Forum FAQ by clicking this link. You have to register before you can post: click the REGISTER link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. View our Forum Privacy Policy.
- Want to receive the latest contracting news and advice straight to your inbox? Sign up to the ContractorUK newsletter here. Every sign up will also be entered into a draw to WIN £100 Amazon vouchers!
test please delete
Collapse
This is a sticky topic.
X
X
Collapse
-
-
Originally posted by Bunk View PostHas anybody used last.fm much? I'm having great difficulty getting it too play anything approaching decent music.Where are we going? And what’s with this hand basket?Comment
-
Evening denizens
I was able to stay late again, and polish up my overengineered admin thingy - it works!
The idea is that, if there's a problem with an online promotion (say the database is unwell, or whatever) they can use this to temporarily prevent people from attempting to register, showing a "sorry, try again later" page.
When briefing me on the requirements, the chap said he wasn't sure of the best approach; I couldn't rely on the database, as it might be what was wrong. He suggested that I could create a file, and test for its existence on every request
I pointed out that Apache is already doing that - looking for an .htaccess file.
So my solution simply copies an .htaccess file into the right place which rewrites all requests to go to the "sorry, we fail" page. When things can be turned back on, it simply deletes it.
There's no additional server overhead in normal operation; if the admin server fails they can re-enable stuff by ssh-ing into the live server and removing the file manually; and the user doesn't get a redirect to an error page (the rewriting happens only on the server) meaning the URL in the location bar is still valid if they want to switch to another tab, then come back later and try a reload. All in all, an elegant solution
(That last point is the most important one, IMHO. I've even ranted about it, then ranted about it some more )Comment
-
Comment
-
Right, I think I've earned some dinner
I'll have to catch up with this afternoon's TPD later
Comment
-
Originally posted by NickFitz View PostRight, I think I've earned some dinner
I'll have to catch up with this afternoon's TPD later
Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
Originally posted by Churchill View PostEvening all!Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
Originally posted by cailin maith View PostI thought so too - I was #01 but now I am #00
Someone deleted a postDrivelling in TPD is not a mental health issue. We're just community blogging, that's all.
Xenophon said: "CUK Geek of the Week". A gingerjedi certified "Elitist Tw@t". Posting rated @ 5 lard pointsComment
-
Originally posted by BrowneIssue View PostIt's getting silly now...
How you feeling today?Where are we going? And what’s with this hand basket?Comment
-
Originally posted by BrowneIssue View PostIt's getting silly now...Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
- Home
- News & Features
- First Timers
- IR35 / S660 / BN66
- Employee Benefit Trusts
- Agency Workers Regulations
- MSC Legislation
- Limited Companies
- Dividends
- Umbrella Company
- VAT / Flat Rate VAT
- Job News & Guides
- Money News & Guides
- Guide to Contracts
- Successful Contracting
- Contracting Overseas
- Contractor Calculators
- MVL
- Contractor Expenses
Advertisers
Contractor Services
CUK News
- Secondary NI threshold sinking to £5,000: a limited company director’s explainer Today 09:51
- Reeves sets Spring Statement 2025 for March 26th Yesterday 09:18
- Spot the hidden contractor Dec 20 10:43
- Accounting for Contractors Dec 19 15:30
- Chartered Accountants with MarchMutual Dec 19 15:05
- Chartered Accountants with March Mutual Dec 19 15:05
- Chartered Accountants Dec 19 15:05
- Unfairly barred from contracting? Petrofac just paid the price Dec 19 09:43
- An IR35 case law look back: contractor must-knows for 2025-26 Dec 18 09:30
- A contractor’s Autumn Budget financial review Dec 17 10:59
Comment