There is an incredible but little known built-in function with PHP that replaces all new line characters within a string with html <br /> tags. Its perfect if you ever want to display the contents of a text area within HTML.
$str = nl2br($str);
This will replace all new line characters with valid XHTML <br /> tags.
There is also an optional parameter to turn of XHTML and just use traditional <br> tags.
$str = nl2br($str, false)
For the first time in over 10 years, my RMTWeb site was down for four days as I struggled to figure out what had completely broken my wordpress installation. A blank white screen was all that greeted any visitor to the site. Scouring through the server logs revealed the culprit – Google Analytics! There seems to be a conflict between it and one of the ReWrite rules created by the WPSecurity Plugin. So it seems I had a choice to make – keep Google Analytics or keep WP Security…..
I first tried removing WP Security, but it places re-write rules in .htaccess files throughout the wordpress installation, so this didn’t solve the issue. Removing the Google Analytics plugin by deleting the whole folder out of FTP did the trick, and the site was back up and running in no time!
Since starting my own business back in 2006, its something that I get asked every few months by someone:
“Should I start my own business?”
It’s always a tricky question to answer because there are so many different types of business. I also get asked what’s the best bit about running your own business, and having been an employee and now an employer, that I can answer more clearly.
So whats the best bits about having your own business?
- You get to make decisions that will affect your future and the direction of your business
- You can change direction quickly and explore new ventures without having to ask permission from anyone
- You can work flexible hours
- You get to choose where you work from, particularly if you run a business where you can work from anywhere with a laptop. We occasionally run one of my businesses from a local coffee shop!
- You can balance work and personal commitments much more easily
- You can choose the way your business will operate, and follow your ethics
Decisions, decisions, decisions!
One thing that it is important to stress is that running your own business involves so many decisions every day that if you are an on-the-fence sort of person, this is going to be difficult!
You will make plenty of decisions that in hindsight were not the best decisions, and the most important thing is that you learn from the not so great decisions so as to not repeat the mistakes.
There are down-sides to having your own business though….
- Those flexible working hours can easily slip into an all-consuming number of hours. You need a wife / husband or significant other to keep you in check. Its always good to have someone who says “you need to be home for dinner by 5:30”, otherwise it will be 10pm and you will still be working on “just one last thing!”
- The money management can be stressful, particularly when it comes to sorting out your accounts at the end of the year.
- You will get a ridiculous amount of paper arriving in the post. Its a complete chore to read it, so make sure you have a large recycling bin.
- Banks are still operating on procedures from the last century and are a nightmare. It doesn’t matter what bank you choose, they still require you to go in and visit in person, and use several forests worth of paper to set up a bank account.
Things you need to know at the start
- HMRC and government departments don’t work on normal calendar years like the rest of society, they work on a ridiculous Financial Year model, where their new year (and thus yours) starts on the first Monday in April each year and ends at a day on or after the 31st March the following year. There is added complexity that your financial year is different again with it beginning from the month that you started your company.
- You need to file annual company accounts with Companies House once per year
- You need to file a different version of the same accounts with HMRC once per year. (You would think that submitting them once would do, but no, that would be much too sensible and easy for a government department!)
- You need to also file a personal tax return with HMRC once per year
Sole trader or limited company?
So, if you have decided that you should start a business, the next question is whether you should go self-employed or start a limited company. I think that there is an easy way to decide this.
Do you have expensive personal assets like a car, house (with a mortgage) etc. that you don’t want to risk loosing?
If your answer to this is yes, then you should consider setting up a limited company. For some of my companies I have used https://www.rapidformations.co.uk – they have an online form that you use to add all your details and it costs about £15 and takes a couple of hours. Once you have set up a limited company it costs about £15 per year (that you pay to Companies House) to keep it registered.
If your answer is no, then you are probably better being a sole-trader. This makes your accounts much simpler, and you have less “with my company owner hat on” juggling to do. You ARE the company. One very important thing is that you have a completely separate business bank account for your business transactions. Don’t just use your current account, as at the end of the financial year this will make your life exceptionally complex.
Your biggest challenge is…..
The biggest obstacle you face in running a successful business is the ridiculously over-complex processes and hoops that the government makes you jump through. There are deadline dates, and if you miss them, the fines can sink a small business very quickly.
Keep a digital calendar, with reminders and always add the important dates in to it:
- The date you started the company, and make it like a birthday where it repeats annually
- When you get told when you have to submit your annual return by Companies House, put it in your calendar with an annual reminder for a week before. If you can complete it before they have to chase you thats always a good thing
Annual Accounts can be done very, very simply
You can complete your annual accounts really easily, using an excel spreadsheet. The best way is to use Companies House. http:/www.companieshouse.gov.uk – you have to keep your limited company details up to date once per year on there anyway.
- Keep a spreadsheet with this minimal information:
Record all the money you get IN on one sheet,
- Record all money OUT on another separate sheet in the same spreadsheet
- On a third sheet of the spreadsheet, in one row, record the balance of your bank account at the start of your financial year
- Add money in to this amount, then take away money out, the result should be the amount currently in your bank account. If it isn’t, then you have missed something!
Final small pieces of advice!
- Don’t be afraid to say no, its better to turn down work and disappoint one potential customer than to over-stretch yourself and disappoint two customers by not delivering
- If you don’t have it, don’t spend it. You cannot go bankrupt if you don’t owe people money
- Don’t be afraid to say no, its better to turn down work and disappoint one potential customer than to over-stretch yourself and disappoint two customers by not delivering.
- Get help from experts – find a local business group and go along and ask lots of questions!
- Try to use as little paper as you can, paper accumulates and at the end of the year you will find your kitchen table completely swamped with a paper nightmare. The easiest way to achieve this is to not buy a printer, store everything digitally (take photos of receipts that you have added to your spreadsheet).
- Invest in your business. If you are running an IT business, and you have some money, don’t go and tie yourself in to a lengthy BMW monthly contract for a nice new car that looks flash, get the best IT equipment you can afford. If your computer doesn’t turn on in 3-5 seconds, you need to get better equipment, you will be using this a lot, and if it is slow then everything takes a long time!
Get help getting started
Find a company like Venture Mosaic that helps business getting started with their branding, materials and web presence as well as .
I was just asked by a local school how to make a post always appear on the home page – the answer is surprisingly simple, but if you don’t know where to look its rather difficult to find!
On the publish box to the right of the wordpress post in the editor, click on the Edit link next to Visibility: Public and then tick the Stick this post to the front page box.
Done! The post now stays at the top of the front/home page. All you have to remember to do is to un-stick it in the future!
Anyone else’s calendar getting completely spammed with invites from 16700700.com or 35700700.com ?
If you are, you are not alone – my calendar has been absolutely crammed with them. As far as I can tell there is no malware or anything security-wise that I have done to allow access to my calendar, it would appear that anyone can invite themselves to any calendar – an obvious security issue.
Its easy to remove them, by right-clicking and choosing Decline, but shortly after doing this for a single item on my calendar it was absolutely inundated with them, so don’t do that! By declining you notify the person that it is a valid email address for the calendar.
Update: 14th November 2016 – Apple engineers have got back to me letting me know that they are working to resolve the issue as it is a huge issue affecting lots of Apple iCloud accounts and that they have seen a sudden increase in the requests over the past 2 weeks. On other more worrying news I now have bogus photos requests too.
The most important things you should do is: Change your iCloud password to something new, and turn on 2-factor authentication for your account.