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
Enjoy!!
Bazza gets caught
Socrates - "The only true wisdom is in knowing you know nothing."
CUK University Challenge Champions 2010Comment
-
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
- Why licensing umbrella companies must be key to 2027’s regulation Today 13:55
- Top 5 Chapter 11 JSL myths contractors should know Yesterday 03:46
- Top 5 Chapter 11 JSL myths contractors should know Sep 14 15:46
- What the housing market needs at Autumn Budget 2025 Sep 10 20:58
- Qdos hit by cybersecurity ‘attack’ Sep 10 01:01
- Why party conference season 2025 is a self-employment policy litmus test Sep 9 09:53
- Labour decommissions Freelance Commissioner idea Sep 8 08:56
- Is it legal to work remotely from Europe via a UK company? Sep 5 22:44
- Is it legal to work remotely from Europe via a UK company? Sep 5 10:44
- Autumn Budget 2025 set for Nov 26, ‘putting contractors on watch’ Sep 4 15:13
Comment